<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width, initial-scale=0.8"/><title>7.18&nbsp;text%</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_0&quot;);">&#9658;</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x">The Racket Graphical Interface Toolkit</a></td></tr></table></div><div class="tocviewsublisttop" style="display: none;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1&nbsp;</td><td><a href="windowing-overview.html" class="tocviewlink" data-pltdoc="x">Windowing</a></td></tr><tr><td align="right">2&nbsp;</td><td><a href="Widget_Gallery.html" class="tocviewlink" data-pltdoc="x">Widget Gallery</a></td></tr><tr><td align="right">3&nbsp;</td><td><a href="Windowing_Classes.html" class="tocviewlink" data-pltdoc="x">Windowing Classes</a></td></tr><tr><td align="right">4&nbsp;</td><td><a href="Windowing_Functions.html" class="tocviewlink" data-pltdoc="x">Windowing Functions</a></td></tr><tr><td align="right">5&nbsp;</td><td><a href="editor-overview.html" class="tocviewlink" data-pltdoc="x">Editors</a></td></tr><tr><td align="right">6&nbsp;</td><td><a href="Snip_and_Style_Classes.html" class="tocviewlink" data-pltdoc="x">Snip and Style Classes</a></td></tr><tr><td align="right">7&nbsp;</td><td><a href="Editor_Classes.html" class="tocviewselflink" data-pltdoc="x">Editor Classes</a></td></tr><tr><td align="right">8&nbsp;</td><td><a href="Editor_Functions.html" class="tocviewlink" data-pltdoc="x">Editor Functions</a></td></tr><tr><td align="right">9&nbsp;</td><td><a href="WXME_Decoding.html" class="tocviewlink" data-pltdoc="x">WXME Decoding</a></td></tr><tr><td align="right">10&nbsp;</td><td><a href="mredprefs.html" class="tocviewlink" data-pltdoc="x">Preferences</a></td></tr><tr><td align="right">11&nbsp;</td><td><a href="Dynamic_Loading.html" class="tocviewlink" data-pltdoc="x">Dynamic Loading</a></td></tr><tr><td align="right">12&nbsp;</td><td><a href="Startup_Actions.html" class="tocviewlink" data-pltdoc="x">Startup Actions</a></td></tr><tr><td align="right">13&nbsp;</td><td><a href="Init_Libraries.html" class="tocviewlink" data-pltdoc="x">Init Libraries</a></td></tr><tr><td align="right">14&nbsp;</td><td><a href="libs.html" class="tocviewlink" data-pltdoc="x">Platform Dependencies</a></td></tr><tr><td align="right"></td><td><a href="doc-index.html" class="tocviewlink" data-pltdoc="x">Index</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_1&quot;);">&#9660;</a></td><td>7&nbsp;</td><td><a href="Editor_Classes.html" class="tocviewlink" data-pltdoc="x">Editor Classes</a></td></tr></table><div class="tocviewsublistbottom" style="display: block;" id="tocview_1"><table cellspacing="0" cellpadding="0"><tr><td align="right">7.1&nbsp;</td><td><a href="editor___.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor&lt;%&gt;</span></span></a></td></tr><tr><td align="right">7.2&nbsp;</td><td><a href="editor-admin_.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor-<wbr></wbr>admin%</span></span></a></td></tr><tr><td align="right">7.3&nbsp;</td><td><a href="editor-canvas_.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor-<wbr></wbr>canvas%</span></span></a></td></tr><tr><td align="right">7.4&nbsp;</td><td><a href="editor-data_.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor-<wbr></wbr>data%</span></span></a></td></tr><tr><td align="right">7.5&nbsp;</td><td><a href="editor-data-class_.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor-<wbr></wbr>data-<wbr></wbr>class%</span></span></a></td></tr><tr><td align="right">7.6&nbsp;</td><td><a href="editor-data-class-list___.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor-<wbr></wbr>data-<wbr></wbr>class-<wbr></wbr>list&lt;%&gt;</span></span></a></td></tr><tr><td align="right">7.7&nbsp;</td><td><a href="editor-snip-editor-admin___.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor-<wbr></wbr>snip-<wbr></wbr>editor-<wbr></wbr>admin&lt;%&gt;</span></span></a></td></tr><tr><td align="right">7.8&nbsp;</td><td><a href="editor-snip_.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor-<wbr></wbr>snip%</span></span></a></td></tr><tr><td align="right">7.9&nbsp;</td><td><a href="editor-stream-in_.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor-<wbr></wbr>stream-<wbr></wbr>in%</span></span></a></td></tr><tr><td align="right">7.10&nbsp;</td><td><a href="editor-stream-in-base_.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor-<wbr></wbr>stream-<wbr></wbr>in-<wbr></wbr>base%</span></span></a></td></tr><tr><td align="right">7.11&nbsp;</td><td><a href="editor-stream-in-bytes-base_.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor-<wbr></wbr>stream-<wbr></wbr>in-<wbr></wbr>bytes-<wbr></wbr>base%</span></span></a></td></tr><tr><td align="right">7.12&nbsp;</td><td><a href="editor-stream-out_.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor-<wbr></wbr>stream-<wbr></wbr>out%</span></span></a></td></tr><tr><td align="right">7.13&nbsp;</td><td><a href="editor-stream-out-base_.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor-<wbr></wbr>stream-<wbr></wbr>out-<wbr></wbr>base%</span></span></a></td></tr><tr><td align="right">7.14&nbsp;</td><td><a href="editor-stream-out-bytes-base_.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor-<wbr></wbr>stream-<wbr></wbr>out-<wbr></wbr>bytes-<wbr></wbr>base%</span></span></a></td></tr><tr><td align="right">7.15&nbsp;</td><td><a href="editor-wordbreak-map_.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">editor-<wbr></wbr>wordbreak-<wbr></wbr>map%</span></span></a></td></tr><tr><td align="right">7.16&nbsp;</td><td><a href="keymap_.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">keymap%</span></span></a></td></tr><tr><td align="right">7.17&nbsp;</td><td><a href="pasteboard_.html" class="tocviewlink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">pasteboard%</span></span></a></td></tr><tr><td align="right">7.18&nbsp;</td><td><a href="" class="tocviewselflink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">text%</span></span></a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><a href="#%28constructor._%28%28lib._mred%2Fmain..rkt%29._text~25%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">new</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-change-style%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">after-<wbr></wbr>change-<wbr></wbr>style</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-delete%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">after-<wbr></wbr>delete</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-insert%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">after-<wbr></wbr>insert</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-merge-snips%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">after-<wbr></wbr>merge-<wbr></wbr>snips</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-set-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">after-<wbr></wbr>set-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-set-size-constraint%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">after-<wbr></wbr>set-<wbr></wbr>size-<wbr></wbr>constraint</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-split-snip%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">after-<wbr></wbr>split-<wbr></wbr>snip</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._call-clickback%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">call-<wbr></wbr>clickback</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-change-style~3f%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">can-<wbr></wbr>change-<wbr></wbr>style?</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-delete~3f%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">can-<wbr></wbr>delete?</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-insert~3f%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">can-<wbr></wbr>insert?</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-set-size-constraint~3f%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">can-<wbr></wbr>set-<wbr></wbr>size-<wbr></wbr>constraint?</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._caret-hidden~3f%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">caret-<wbr></wbr>hidden?</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._change-style%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">change-<wbr></wbr>style</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._copy%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">copy</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._copy-self-to%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">copy-<wbr></wbr>self-<wbr></wbr>to</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._cut%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">cut</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._delete%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">delete</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._do-copy%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">do-<wbr></wbr>copy</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._do-paste%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">do-<wbr></wbr>paste</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._do-paste-x-selection%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">do-<wbr></wbr>paste-<wbr></wbr>x-<wbr></wbr>selection</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._erase%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">erase</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._extend-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">extend-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-line%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">find-<wbr></wbr>line</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-newline%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">find-<wbr></wbr>newline</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-next-non-string-snip%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">find-<wbr></wbr>next-<wbr></wbr>non-<wbr></wbr>string-<wbr></wbr>snip</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">find-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-position-in-line%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">find-<wbr></wbr>position-<wbr></wbr>in-<wbr></wbr>line</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-snip%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">find-<wbr></wbr>snip</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-string%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">find-<wbr></wbr>string</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-string-embedded%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">find-<wbr></wbr>string-<wbr></wbr>embedded</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-string-all%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">find-<wbr></wbr>string-<wbr></wbr>all</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-string-embedded-all%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">find-<wbr></wbr>string-<wbr></wbr>embedded-<wbr></wbr>all</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-wordbreak%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">find-<wbr></wbr>wordbreak</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._flash-off%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">flash-<wbr></wbr>off</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._flash-on%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">flash-<wbr></wbr>on</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-anchor%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>anchor</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-autowrap-bitmap-width%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>autowrap-<wbr></wbr>bitmap-<wbr></wbr>width</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-between-threshold%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>between-<wbr></wbr>threshold</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-character%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>character</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-end-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>end-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-extend-start-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>extend-<wbr></wbr>start-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-extend-end-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>extend-<wbr></wbr>end-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-file-format%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>file-<wbr></wbr>format</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-line-spacing%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>line-<wbr></wbr>spacing</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-overwrite-mode%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>overwrite-<wbr></wbr>mode</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-padding%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>padding</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-region-data%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>region-<wbr></wbr>data</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-revision-number%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>revision-<wbr></wbr>number</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-snip-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>snip-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-snip-position-and-location%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>snip-<wbr></wbr>position-<wbr></wbr>and-<wbr></wbr>location</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-start-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>start-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-styles-sticky%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>styles-<wbr></wbr>sticky</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-tabs%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>tabs</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-text%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>text</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-top-line-base%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>top-<wbr></wbr>line-<wbr></wbr>base</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-visible-line-range%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>visible-<wbr></wbr>line-<wbr></wbr>range</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-visible-position-range%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>visible-<wbr></wbr>position-<wbr></wbr>range</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-wordbreak-map%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">get-<wbr></wbr>wordbreak-<wbr></wbr>map</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._hide-caret%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">hide-<wbr></wbr>caret</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._insert%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">insert</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._kill%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">kill</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._last-line%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">last-<wbr></wbr>line</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._last-paragraph%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">last-<wbr></wbr>paragraph</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._last-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">last-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-end-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">line-<wbr></wbr>end-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-length%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">line-<wbr></wbr>length</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-location%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">line-<wbr></wbr>location</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-paragraph%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">line-<wbr></wbr>paragraph</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-start-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">line-<wbr></wbr>start-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._move-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">move-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-change-style%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">on-<wbr></wbr>change-<wbr></wbr>style</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-default-char%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">on-<wbr></wbr>default-<wbr></wbr>char</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-default-event%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">on-<wbr></wbr>default-<wbr></wbr>event</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-delete%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">on-<wbr></wbr>delete</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-insert%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">on-<wbr></wbr>insert</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-new-string-snip%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">on-<wbr></wbr>new-<wbr></wbr>string-<wbr></wbr>snip</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-new-tab-snip%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">on-<wbr></wbr>new-<wbr></wbr>tab-<wbr></wbr>snip</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-reflow%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">on-<wbr></wbr>reflow</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-set-size-constraint%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">on-<wbr></wbr>set-<wbr></wbr>size-<wbr></wbr>constraint</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paragraph-end-line%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">paragraph-<wbr></wbr>end-<wbr></wbr>line</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paragraph-end-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">paragraph-<wbr></wbr>end-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paragraph-start-line%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">paragraph-<wbr></wbr>start-<wbr></wbr>line</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paragraph-start-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">paragraph-<wbr></wbr>start-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paste%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">paste</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paste-next%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">paste-<wbr></wbr>next</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paste-x-selection%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">paste-<wbr></wbr>x-<wbr></wbr>selection</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._position-line%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">position-<wbr></wbr>line</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._position-location%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">position-<wbr></wbr>location</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._position-locations%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">position-<wbr></wbr>locations</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._position-paragraph%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">position-<wbr></wbr>paragraph</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._read-from-file%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">read-<wbr></wbr>from-<wbr></wbr>file</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._remove-clickback%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">remove-<wbr></wbr>clickback</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._scroll-to-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">scroll-<wbr></wbr>to-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-anchor%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>anchor</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-autowrap-bitmap%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>autowrap-<wbr></wbr>bitmap</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-between-threshold%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>between-<wbr></wbr>threshold</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-clickback%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>clickback</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-file-format%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>file-<wbr></wbr>format</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-line-spacing%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>line-<wbr></wbr>spacing</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-overwrite-mode%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>overwrite-<wbr></wbr>mode</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-padding%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>padding</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-paragraph-alignment%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>paragraph-<wbr></wbr>alignment</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-paragraph-margins%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>paragraph-<wbr></wbr>margins</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-position%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>position</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-position-bias-scroll%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>position-<wbr></wbr>bias-<wbr></wbr>scroll</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-region-data%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>region-<wbr></wbr>data</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-styles-sticky%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>styles-<wbr></wbr>sticky</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-tabs%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>tabs</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-wordbreak-func%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>wordbreak-<wbr></wbr>func</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-wordbreak-map%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">set-<wbr></wbr>wordbreak-<wbr></wbr>map</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._split-snip%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">split-<wbr></wbr>snip</span></span></a></td></tr><tr><td><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._write-to-file%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">write-<wbr></wbr>to-<wbr></wbr>file</span></span></a></td></tr></table></div><table cellspacing="0" cellpadding="0" class="inherited"><tr><td><span class="inheritedlbl">Inherited methods:</span></td></tr><tr><td><span class="inheritedlbl">from </span><span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._add-canvas%29%29" class="RktValLink" data-pltdoc="x">add-<wbr></wbr>canvas</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._add-undo%29%29" class="RktValLink" data-pltdoc="x">add-<wbr></wbr>undo</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._adjust-cursor%29%29" class="RktValLink" data-pltdoc="x">adjust-<wbr></wbr>cursor</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._after-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">after-<wbr></wbr>edit-<wbr></wbr>sequence</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._after-load-file%29%29" class="RktValLink" data-pltdoc="x">after-<wbr></wbr>load-<wbr></wbr>file</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._after-save-file%29%29" class="RktValLink" data-pltdoc="x">after-<wbr></wbr>save-<wbr></wbr>file</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._after-scroll-to%29%29" class="RktValLink" data-pltdoc="x">after-<wbr></wbr>scroll-<wbr></wbr>to</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._auto-wrap%29%29" class="RktValLink" data-pltdoc="x">auto-<wbr></wbr>wrap</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._begin-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">begin-<wbr></wbr>edit-<wbr></wbr>sequence</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._begin-write-header-footer-to-file%29%29" class="RktValLink" data-pltdoc="x">begin-<wbr></wbr>write-<wbr></wbr>header-<wbr></wbr>footer-<wbr></wbr>to-<wbr></wbr>file</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._blink-caret%29%29" class="RktValLink" data-pltdoc="x">blink-<wbr></wbr>caret</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._can-do-edit-operation~3f%29%29" class="RktValLink" data-pltdoc="x">can-<wbr></wbr>do-<wbr></wbr>edit-<wbr></wbr>operation?</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._can-load-file~3f%29%29" class="RktValLink" data-pltdoc="x">can-<wbr></wbr>load-<wbr></wbr>file?</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._can-save-file~3f%29%29" class="RktValLink" data-pltdoc="x">can-<wbr></wbr>save-<wbr></wbr>file?</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._clear%29%29" class="RktValLink" data-pltdoc="x">clear</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._clear-undos%29%29" class="RktValLink" data-pltdoc="x">clear-<wbr></wbr>undos</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._copy-self%29%29" class="RktValLink" data-pltdoc="x">copy-<wbr></wbr>self</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._dc-location-to-editor-location%29%29" class="RktValLink" data-pltdoc="x">dc-<wbr></wbr>location-<wbr></wbr>to-<wbr></wbr>editor-<wbr></wbr>location</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._default-style-name%29%29" class="RktValLink" data-pltdoc="x">default-<wbr></wbr>style-<wbr></wbr>name</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._do-edit-operation%29%29" class="RktValLink" data-pltdoc="x">do-<wbr></wbr>edit-<wbr></wbr>operation</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._editor-location-to-dc-location%29%29" class="RktValLink" data-pltdoc="x">editor-<wbr></wbr>location-<wbr></wbr>to-<wbr></wbr>dc-<wbr></wbr>location</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._end-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">end-<wbr></wbr>edit-<wbr></wbr>sequence</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._end-write-header-footer-to-file%29%29" class="RktValLink" data-pltdoc="x">end-<wbr></wbr>write-<wbr></wbr>header-<wbr></wbr>footer-<wbr></wbr>to-<wbr></wbr>file</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._find-first-snip%29%29" class="RktValLink" data-pltdoc="x">find-<wbr></wbr>first-<wbr></wbr>snip</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._find-scroll-line%29%29" class="RktValLink" data-pltdoc="x">find-<wbr></wbr>scroll-<wbr></wbr>line</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-active-canvas%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>active-<wbr></wbr>canvas</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-admin%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>admin</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-canvas%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>canvas</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-canvases%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>canvases</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-dc%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>dc</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-descent%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>descent</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-extent%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>extent</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-file%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>file</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-filename%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>filename</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-flattened-text%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>flattened-<wbr></wbr>text</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-focus-snip%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>focus-<wbr></wbr>snip</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-inactive-caret-threshold%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>inactive-<wbr></wbr>caret-<wbr></wbr>threshold</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-keymap%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>keymap</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-load-overwrites-styles%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>load-<wbr></wbr>overwrites-<wbr></wbr>styles</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-max-height%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>max-<wbr></wbr>height</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-max-undo-history%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>max-<wbr></wbr>undo-<wbr></wbr>history</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-max-view-size%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>max-<wbr></wbr>view-<wbr></wbr>size</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-max-width%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>max-<wbr></wbr>width</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-min-height%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>min-<wbr></wbr>height</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-min-width%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>min-<wbr></wbr>width</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-paste-text-only%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>paste-<wbr></wbr>text-<wbr></wbr>only</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-snip-data%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>snip-<wbr></wbr>data</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-snip-location%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>snip-<wbr></wbr>location</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-space%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>space</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-style-list%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>style-<wbr></wbr>list</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-view-size%29%29" class="RktValLink" data-pltdoc="x">get-<wbr></wbr>view-<wbr></wbr>size</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._global-to-local%29%29" class="RktValLink" data-pltdoc="x">global-<wbr></wbr>to-<wbr></wbr>local</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._in-edit-sequence~3f%29%29" class="RktValLink" data-pltdoc="x">in-<wbr></wbr>edit-<wbr></wbr>sequence?</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._insert-box%29%29" class="RktValLink" data-pltdoc="x">insert-<wbr></wbr>box</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._insert-file%29%29" class="RktValLink" data-pltdoc="x">insert-<wbr></wbr>file</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._insert-image%29%29" class="RktValLink" data-pltdoc="x">insert-<wbr></wbr>image</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._insert-port%29%29" class="RktValLink" data-pltdoc="x">insert-<wbr></wbr>port</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._invalidate-bitmap-cache%29%29" class="RktValLink" data-pltdoc="x">invalidate-<wbr></wbr>bitmap-<wbr></wbr>cache</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._is-locked~3f%29%29" class="RktValLink" data-pltdoc="x">is-<wbr></wbr>locked?</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._is-modified~3f%29%29" class="RktValLink" data-pltdoc="x">is-<wbr></wbr>modified?</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._is-printing~3f%29%29" class="RktValLink" data-pltdoc="x">is-<wbr></wbr>printing?</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._load-file%29%29" class="RktValLink" data-pltdoc="x">load-<wbr></wbr>file</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._local-to-global%29%29" class="RktValLink" data-pltdoc="x">local-<wbr></wbr>to-<wbr></wbr>global</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._locations-computed~3f%29%29" class="RktValLink" data-pltdoc="x">locations-<wbr></wbr>computed?</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._lock%29%29" class="RktValLink" data-pltdoc="x">lock</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._locked-for-flow~3f%29%29" class="RktValLink" data-pltdoc="x">locked-<wbr></wbr>for-<wbr></wbr>flow?</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._locked-for-read~3f%29%29" class="RktValLink" data-pltdoc="x">locked-<wbr></wbr>for-<wbr></wbr>read?</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._locked-for-write~3f%29%29" class="RktValLink" data-pltdoc="x">locked-<wbr></wbr>for-<wbr></wbr>write?</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._needs-update%29%29" class="RktValLink" data-pltdoc="x">needs-<wbr></wbr>update</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._num-scroll-lines%29%29" class="RktValLink" data-pltdoc="x">num-<wbr></wbr>scroll-<wbr></wbr>lines</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-change%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>change</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-char%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>char</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-display-size%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>display-<wbr></wbr>size</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-display-size-when-ready%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>display-<wbr></wbr>size-<wbr></wbr>when-<wbr></wbr>ready</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>edit-<wbr></wbr>sequence</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-event%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>event</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-focus%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>focus</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-load-file%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>load-<wbr></wbr>file</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-local-char%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>local-<wbr></wbr>char</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-local-event%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>local-<wbr></wbr>event</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-new-box%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>new-<wbr></wbr>box</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-new-image-snip%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>new-<wbr></wbr>image-<wbr></wbr>snip</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-paint%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>paint</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-save-file%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>save-<wbr></wbr>file</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-scroll-to%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>scroll-<wbr></wbr>to</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-snip-modified%29%29" class="RktValLink" data-pltdoc="x">on-<wbr></wbr>snip-<wbr></wbr>modified</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._own-caret%29%29" class="RktValLink" data-pltdoc="x">own-<wbr></wbr>caret</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._print%29%29" class="RktValLink" data-pltdoc="x">print</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._print-to-dc%29%29" class="RktValLink" data-pltdoc="x">print-<wbr></wbr>to-<wbr></wbr>dc</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._put-file%29%29" class="RktValLink" data-pltdoc="x">put-<wbr></wbr>file</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._read-footer-from-file%29%29" class="RktValLink" data-pltdoc="x">read-<wbr></wbr>footer-<wbr></wbr>from-<wbr></wbr>file</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._read-header-from-file%29%29" class="RktValLink" data-pltdoc="x">read-<wbr></wbr>header-<wbr></wbr>from-<wbr></wbr>file</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._redo%29%29" class="RktValLink" data-pltdoc="x">redo</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh%29%29" class="RktValLink" data-pltdoc="x">refresh</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-<wbr></wbr>delayed?</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._release-snip%29%29" class="RktValLink" data-pltdoc="x">release-<wbr></wbr>snip</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._remove-canvas%29%29" class="RktValLink" data-pltdoc="x">remove-<wbr></wbr>canvas</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._resized%29%29" class="RktValLink" data-pltdoc="x">resized</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._save-file%29%29" class="RktValLink" data-pltdoc="x">save-<wbr></wbr>file</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._save-port%29%29" class="RktValLink" data-pltdoc="x">save-<wbr></wbr>port</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._scroll-editor-to%29%29" class="RktValLink" data-pltdoc="x">scroll-<wbr></wbr>editor-<wbr></wbr>to</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._scroll-line-location%29%29" class="RktValLink" data-pltdoc="x">scroll-<wbr></wbr>line-<wbr></wbr>location</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._scroll-to%29%29" class="RktValLink" data-pltdoc="x">scroll-<wbr></wbr>to</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._select-all%29%29" class="RktValLink" data-pltdoc="x">select-<wbr></wbr>all</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-active-canvas%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>active-<wbr></wbr>canvas</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-admin%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>admin</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-caret-owner%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>caret-<wbr></wbr>owner</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-cursor%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>cursor</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-filename%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>filename</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-inactive-caret-threshold%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>inactive-<wbr></wbr>caret-<wbr></wbr>threshold</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-keymap%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>keymap</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-load-overwrites-styles%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>load-<wbr></wbr>overwrites-<wbr></wbr>styles</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-max-height%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>max-<wbr></wbr>height</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-max-undo-history%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>max-<wbr></wbr>undo-<wbr></wbr>history</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-max-width%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>max-<wbr></wbr>width</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-min-height%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>min-<wbr></wbr>height</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-min-width%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>min-<wbr></wbr>width</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-modified%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>modified</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-paste-text-only%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>paste-<wbr></wbr>text-<wbr></wbr>only</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-snip-data%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>snip-<wbr></wbr>data</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-style-list%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>style-<wbr></wbr>list</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-undo-preserves-all-history%29%29" class="RktValLink" data-pltdoc="x">set-<wbr></wbr>undo-<wbr></wbr>preserves-<wbr></wbr>all-<wbr></wbr>history</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._size-cache-invalid%29%29" class="RktValLink" data-pltdoc="x">size-<wbr></wbr>cache-<wbr></wbr>invalid</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._style-has-changed%29%29" class="RktValLink" data-pltdoc="x">style-<wbr></wbr>has-<wbr></wbr>changed</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._undo%29%29" class="RktValLink" data-pltdoc="x">undo</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._undo-preserves-all-history~3f%29%29" class="RktValLink" data-pltdoc="x">undo-<wbr></wbr>preserves-<wbr></wbr>all-<wbr></wbr>history?</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._use-file-text-mode%29%29" class="RktValLink" data-pltdoc="x">use-<wbr></wbr>file-<wbr></wbr>text-<wbr></wbr>mode</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._write-footers-to-file%29%29" class="RktValLink" data-pltdoc="x">write-<wbr></wbr>footers-<wbr></wbr>to-<wbr></wbr>file</a></span></td></tr><tr><td><span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._write-headers-to-file%29%29" class="RktValLink" data-pltdoc="x">write-<wbr></wbr>headers-<wbr></wbr>to-<wbr></wbr>file</a></span></td></tr></table></div><div class="maincolumn"><div class="main"><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" tabindex="1" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, &quot;7.7&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;7.7&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="pasteboard_.html" title="backward to &quot;7.17 pasteboard%&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="Editor_Classes.html" title="up to &quot;7 Editor Classes&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="Editor_Functions.html" title="forward to &quot;8 Editor Functions&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div><a name="(part._text_)"></a><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>class</p></div></div><p class="RForeground"><a name="(def._((lib._mred/main..rkt)._text~25))"></a><span title="Provided from: racket/gui/base, racket/gui | Package: gui-lib"><span class="RktSym"><a href="" class="RktValDef RktValLink" data-pltdoc="x">text%</a></span></span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=objectutils.html%23%2528def._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._class%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">class?</a></span></p></blockquote></td></tr><tr><td><p><span class="hspace">&nbsp;&nbsp;</span>superclass:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528def._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._object%7E25%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">object%</a></span></p></td></tr><tr><td><table cellspacing="0" cellpadding="0"><tr><td><span class="hspace">&nbsp;&nbsp;</span>extends:<span class="hspace">&nbsp;</span></td><td><span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span></td></tr></table></td></tr></table></div><div class="SIntrapara">A <span class="RktSym"><a href="" class="RktValLink" data-pltdoc="x">text%</a></span> object is a standard text editor. A text editor is
 displayed on the screen through an <span class="RktSym"><a href="editor-canvas_.html" class="RktValLink" data-pltdoc="x">editor-canvas%</a></span> object or
 some other <a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>constructor</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top" colspan="3"><span class="RktPn">(</span><a name="(constructor._((lib._mred/main..rkt)._text~25))"></a><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=objcreation.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._new%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">new</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="" class="RktValLink" data-pltdoc="x">text%</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;&nbsp;&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktPn">[</span><span class="RktSym">line-spacing</span><span class="hspace">&nbsp;</span><span class="RktVar">line-spacing</span><span class="RktPn">]</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;&nbsp;&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktPn">[</span><span class="RktSym">tab-stops</span><span class="hspace">&nbsp;</span><span class="RktVar">tab-stops</span><span class="RktPn">]</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;&nbsp;&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktPn">[</span><span class="RktSym">auto-wrap</span><span class="hspace">&nbsp;</span><span class="RktVar">auto-wrap</span><span class="RktPn">]</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="" class="RktValLink" data-pltdoc="x">text%</a></span><span class="RktPn">)</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">line-spacing</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">1.0</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">tab-stops</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._listof%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._null%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">null</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">auto-wrap</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">The <span class="RktVar">line-spacing</span> argument sets the additional amount of space
 (in DC units) inserted between each line in the editor when the
 editor is displayed. This spacing is included in the reported height
 of each line.</div></p><p>See <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-tabs%29%29" class="RktValLink" data-pltdoc="x">set-tabs</a></span> for information about <span class="RktSym">tabstops</span>.</p><p>If <span class="RktVar">auto-wrap</span> is true, then auto-wrapping is enabled via
 <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._auto-wrap%29%29" class="RktValLink" data-pltdoc="x">auto-wrap</a></span>.</p><p>A new <span class="RktSym"><a href="keymap_.html" class="RktValLink" data-pltdoc="x">keymap%</a></span> object is created for the new editor.  See also
 <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-keymap%29%29" class="RktValLink" data-pltdoc="x">get-keymap</a></span> and <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-keymap%29%29" class="RktValLink" data-pltdoc="x">set-keymap</a></span>.</p><p>A new <span class="RktSym"><a href="style-list_.html" class="RktValLink" data-pltdoc="x">style-list%</a></span> object is created for the new editor.  See
 also <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-style-list%29%29" class="RktValLink" data-pltdoc="x">get-style-list</a></span> and <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-style-list%29%29" class="RktValLink" data-pltdoc="x">set-style-list</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._after-change-style))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-change-style%29%29" class="RktValDef RktValLink" data-pltdoc="x">after-change-style</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">len</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">len</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called after the style is changed for a given range (and after the
 <a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a> is refreshed; use <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-change-style%29%29" class="RktValLink" data-pltdoc="x">on-change-style</a></span>
 and <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._begin-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">begin-edit-sequence</a></span> to avoid extra refreshes
 when <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-change-style%29%29" class="RktValLink" data-pltdoc="x">after-change-style</a></span> modifies the editor).</div></p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-change-style~3f%29%29" class="RktValLink" data-pltdoc="x">can-change-style?</a></span> and <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">on-edit-sequence</a></span>.</p><p>No internals locks are set when this method is called.</p><p><span style="font-style: italic">Default implementation:</span> 
Does nothing.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._after-delete))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-delete%29%29" class="RktValDef RktValLink" data-pltdoc="x">after-delete</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">len</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">len</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called after a given range is deleted from the editor (and after the
 <a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a> is refreshed; use <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-delete%29%29" class="RktValLink" data-pltdoc="x">on-delete</a></span> and
 <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._begin-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">begin-edit-sequence</a></span> to avoid extra refreshes when
 <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-delete%29%29" class="RktValLink" data-pltdoc="x">after-delete</a></span> modifies the editor).</div></p><p>The <span class="RktVar">start</span> argument specifies the starting <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>
 of the deleted range. The <span class="RktVar">len</span> argument specifies number of
 deleted <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s (so <span class="RktVar">start</span><span style="font-style: italic">+</span><span class="RktVar">len</span> is
 the ending <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of the deleted range).</p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-delete~3f%29%29" class="RktValLink" data-pltdoc="x">can-delete?</a></span> and <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">on-edit-sequence</a></span>.</p><p>No internals locks are set when this method is called.</p><p><span style="font-style: italic">Default implementation:</span> 
Does nothing.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._after-insert))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-insert%29%29" class="RktValDef RktValLink" data-pltdoc="x">after-insert</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">len</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">len</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called after <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s are inserted into the editor (and after
 the <a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a> is refreshed; use <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-insert%29%29" class="RktValLink" data-pltdoc="x">on-insert</a></span> and
 <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._begin-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">begin-edit-sequence</a></span> to avoid extra refreshes when
 <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-insert%29%29" class="RktValLink" data-pltdoc="x">after-insert</a></span> modifies the editor).</div></p><p>The <span class="RktVar">start</span> argument specifies the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of the insert. The
 <span class="RktVar">len</span> argument specifies the total length (in <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>s) of
 the inserted <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s.</p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-insert~3f%29%29" class="RktValLink" data-pltdoc="x">can-insert?</a></span> and <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">on-edit-sequence</a></span>.</p><p>No internals locks are set when this method is called.</p><p><span style="font-style: italic">Default implementation:</span> 
Does nothing.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._after-merge-snips))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-merge-snips%29%29" class="RktValDef RktValLink" data-pltdoc="x">after-merge-snips</a></span><span class="hspace">&nbsp;</span><span class="RktVar">pos</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">pos</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called after adjacent snips in the editor are combined into one.</div></p><p>The <span class="RktVar">pos</span> argument specifies the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> within the editor
 where the snips were merged (i.e., one old snip was just before
 <span class="RktVar">pos</span>, one old was just after <span class="RktVar">pos</span>, and the new snip spans
 <span class="RktVar">pos</span>).</p><p>See also <span class="RktSym"><a href="snip_.html#%28meth._%28%28%28lib._racket%2Fsnip..rkt%29._snip~25%29._merge-with%29%29" class="RktValLink" data-pltdoc="x">merge-with</a></span>.</p><p><span style="font-style: italic">Default implementation:</span> 
Does nothing.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._after-set-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-set-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">after-set-position</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called after the start and end <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> have been moved (but not
 when the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is moved due to inserts or deletes).</div></p><p>See also
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">on-edit-sequence</a></span>.</p><p><span style="font-style: italic">Default implementation:</span> 
Does nothing.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._after-set-size-constraint))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-set-size-constraint%29%29" class="RktValDef RktValLink" data-pltdoc="x">after-set-size-constraint</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called after the editor&rsquo;s maximum or minimum height or width is
 changed (and after the <a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a> is refreshed; use
 <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-set-size-constraint%29%29" class="RktValLink" data-pltdoc="x">on-set-size-constraint</a></span> and <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._begin-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">begin-edit-sequence</a></span> to avoid extra refreshes when <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-set-size-constraint%29%29" class="RktValLink" data-pltdoc="x">after-set-size-constraint</a></span> modifies the editor).</div></p><p>(This callback method is provided because setting an editor&rsquo;s maximum
 width may cause lines to be re-flowed with soft newlines.)</p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-set-size-constraint~3f%29%29" class="RktValLink" data-pltdoc="x">can-set-size-constraint?</a></span> and <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">on-edit-sequence</a></span>.</p><p><span style="font-style: italic">Default implementation:</span> 
Does nothing.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._after-split-snip))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-split-snip%29%29" class="RktValDef RktValLink" data-pltdoc="x">after-split-snip</a></span><span class="hspace">&nbsp;</span><span class="RktVar">pos</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">pos</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called after a snip in the editor is split into two, either through a
 call to <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._split-snip%29%29" class="RktValLink" data-pltdoc="x">split-snip</a></span> or during some other action, such
 as inserting.</div></p><p>The <span class="RktVar">pos</span> argument specifies the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> within the editor
 where a snip was split.</p><p><span style="font-style: italic">Default implementation:</span> 
Does nothing.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._call-clickback))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._call-clickback%29%29" class="RktValDef RktValLink" data-pltdoc="x">call-clickback</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">end</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Simulates a user click that invokes a clickback, if the given range of
 <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>s is within a clickback&rsquo;s region. See also
 <a href="editor-overview.html#%28part._editorclickback%29" data-pltdoc="x">Clickbacks</a>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._can-change-style~3f))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-change-style~3f%29%29" class="RktValDef RktValLink" data-pltdoc="x">can-change-style?</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">len</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">len</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called before the style is changed in a given range of the editor. If
 the return value is <span class="RktVal">#f</span>, then the style change will be
 aborted.</div></p><p>The editor is internally locked for writing during a call to this
 method (see also <a href="editor-overview.html#%28part._lockinfo%29" data-pltdoc="x">Internal Editor Locks</a>). Use <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-change-style%29%29" class="RktValLink" data-pltdoc="x">after-change-style</a></span> to modify the editor, if necessary.</p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-change-style%29%29" class="RktValLink" data-pltdoc="x">on-change-style</a></span>, <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-change-style%29%29" class="RktValLink" data-pltdoc="x">after-change-style</a></span>, and <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">on-edit-sequence</a></span>.</p><p><span style="font-style: italic">Default implementation:</span> 
Returns <span class="RktVal">#t</span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._can-delete~3f))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-delete~3f%29%29" class="RktValDef RktValLink" data-pltdoc="x">can-delete?</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">len</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">len</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called before a range is deleted from the editor.
If the return value is <span class="RktVal">#f</span>, then the
delete will be aborted.</div></p><p>The <span class="RktVar">start</span> argument specifies the starting <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>
 of the range to delete. The <span class="RktVar">len</span> argument specifies number of
 <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s to delete (so <span class="RktVar">start</span><span style="font-style: italic">+</span><span class="RktVar">len</span> is
 the ending <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of the range to delete).</p><p>The editor is internally locked for writing during a call to this method
(see also <a href="editor-overview.html#%28part._lockinfo%29" data-pltdoc="x">Internal Editor Locks</a>). Use
<span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-delete%29%29" class="RktValLink" data-pltdoc="x">after-delete</a></span> to modify the editor, if necessary.</p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-delete%29%29" class="RktValLink" data-pltdoc="x">on-delete</a></span>, <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-delete%29%29" class="RktValLink" data-pltdoc="x">after-delete</a></span>, and
 <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">on-edit-sequence</a></span>.</p><p><span style="font-style: italic">Default implementation:</span> 
Returns <span class="RktVal">#t</span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._can-insert~3f))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-insert~3f%29%29" class="RktValDef RktValLink" data-pltdoc="x">can-insert?</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">len</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">len</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called before <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s are inserted into the editor.  If the
 return value is <span class="RktVal">#f</span>, then the insert will be aborted.</div></p><p>The <span class="RktVar">start</span> argument specifies the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of the potential
 insert. The <span class="RktVar">len</span> argument specifies the total length (in
 <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>s) of the <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s to be inserted.</p><p>The editor is internally locked for writing during a call to this
 method (see also <a href="editor-overview.html#%28part._lockinfo%29" data-pltdoc="x">Internal Editor Locks</a>). Use <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-insert%29%29" class="RktValLink" data-pltdoc="x">after-insert</a></span> to
 modify the editor, if necessary.</p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-insert%29%29" class="RktValLink" data-pltdoc="x">on-insert</a></span>, <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-insert%29%29" class="RktValLink" data-pltdoc="x">after-insert</a></span>, and
 <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">on-edit-sequence</a></span>.</p><p><span style="font-style: italic">Default implementation:</span> 
Returns <span class="RktVal">#t</span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._can-set-size-constraint~3f))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-set-size-constraint~3f%29%29" class="RktValDef RktValLink" data-pltdoc="x">can-set-size-constraint?</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called before the editor&rsquo;s maximum or minimum height or width
is changed. If the return value is <span class="RktVal">#f</span>, then the
change will be aborted.</div></p><p>(This callback method is provided because setting an editor&rsquo;s maximum
width may cause lines to be re-flowed with soft newlines.)</p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-set-size-constraint%29%29" class="RktValLink" data-pltdoc="x">on-set-size-constraint</a></span>, <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-set-size-constraint%29%29" class="RktValLink" data-pltdoc="x">after-set-size-constraint</a></span>, and <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">on-edit-sequence</a></span>.</p><p><span style="font-style: italic">Default implementation:</span> 
Returns <span class="RktVal">#t</span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._caret-hidden~3f))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._caret-hidden~3f%29%29" class="RktValDef RktValLink" data-pltdoc="x">caret-hidden?</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns <span class="RktVal">#t</span> if the caret is hidden for this editor or <span class="RktVal">#f</span>
otherwise.</div></p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._hide-caret%29%29" class="RktValLink" data-pltdoc="x">hide-caret</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._change-style))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._change-style%29%29" class="RktValDef RktValLink" data-pltdoc="x">change-style</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">delta</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">counts-as-mod?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">delta</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="style-delta_.html" class="RktValLink" data-pltdoc="x">style-delta%</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">end</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">end</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">counts-as-mod?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="prototype"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._change-style%29%29" class="RktValDef RktValLink" data-pltdoc="x">change-style</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">style</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">counts-as-mod?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">style</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="style___.html" class="RktValLink" data-pltdoc="x">style&lt;%&gt;</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">end</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">end</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">counts-as-mod?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr></table></blockquote></div><div class="SIntrapara">Changes the style for a region in the editor by applying a style delta
 or installing a specific style.  If <span class="RktVar">start</span> is <span class="RktVal">'</span><span class="RktVal">start</span>
 and <span class="RktVar">end</span> is <span class="RktVal">'</span><span class="RktVal">end</span>, then the currently selected
 <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s are changed. Otherwise, if <span class="RktVar">end</span> is
 <span class="RktVal">'</span><span class="RktVal">end</span>, then the style is changed from <span class="RktVar">start</span> until
 the end of the selection.  If <span class="RktVar">counts-as-mod?</span> is <span class="RktVal">#f</span>,
 then <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-modified%29%29" class="RktValLink" data-pltdoc="x">set-modified</a></span> is not called after applying the
 style change.</div></p><p>To change a large collection of snips from one style to another style,
 consider providing a <span class="RktSym"><a href="style___.html" class="RktValLink" data-pltdoc="x">style&lt;%&gt;</a></span> instance rather than a
 <span class="RktSym"><a href="style-delta_.html" class="RktValLink" data-pltdoc="x">style-delta%</a></span> instance. Otherwise, <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._change-style%29%29" class="RktValLink" data-pltdoc="x">change-style</a></span> must convert the <span class="RktSym"><a href="style-delta_.html" class="RktValLink" data-pltdoc="x">style-delta%</a></span> instance to the
 <span class="RktSym"><a href="style___.html" class="RktValLink" data-pltdoc="x">style&lt;%&gt;</a></span> instance for every snip; this conversion consumes
 both time and (temporary) memory.</p><p>When <span class="RktVar">style</span> is provided: The editor&rsquo;s style list must contain <span class="RktVar">style</span>, otherwise
the style is not changed. See also <span class="RktSym"><a href="style-list_.html#%28meth._%28%28%28lib._racket%2Fsnip..rkt%29._style-list~25%29._convert%29%29" class="RktValLink" data-pltdoc="x">convert</a></span> in <span class="RktSym"><a href="style-list_.html" class="RktValLink" data-pltdoc="x">style-list%</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._copy))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._copy%29%29" class="RktValDef RktValLink" data-pltdoc="x">copy</a></span><span class="hspace">&nbsp;</span>[<span class="RktVar">extend?</span><span class="hspace">&nbsp;</span><span class="RktVar">time</span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">end</span>]<span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">extend?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">time</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-integer?</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">end</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">end</span></td></tr></table></blockquote></div><div class="SIntrapara">Extends <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._copy%29%29" class="RktValLink" data-pltdoc="x">copy</a></span> in <span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span>.</div><div class="SIntrapara">Copies specified range of text into the clipboard. If <span class="RktVar">extend?</span> is
 not <span class="RktVal">#f</span>, the old clipboard contents are appended. If
 <span class="RktVar">start</span> is <span class="RktVal">'</span><span class="RktVal">start</span> or <span class="RktVar">end</span> is <span class="RktVal">'</span><span class="RktVal">end</span>, then the
 current selection start/end is used.</div></p><p>See <a href="editor-overview.html#%28part._editorcutandpastetime%29" data-pltdoc="x">Cut and Paste Time Stamps</a> for a discussion of the <span class="RktVar">time</span> argument. If
 <span class="RktVar">time</span> is outside the platform-specific range of times,
 an <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=exns.html%23%2528def._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._exn%7E3afail%7E3acontract%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exn:fail:contract</a></span> exception is raised.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._copy-self-to))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._copy-self-to%29%29" class="RktValDef RktValLink" data-pltdoc="x">copy-self-to</a></span><span class="hspace">&nbsp;</span><span class="RktVar">dest</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">dest</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="" class="RktValLink" data-pltdoc="x">text%</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="pasteboard_.html" class="RktValLink" data-pltdoc="x">pasteboard%</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Overrides <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._copy-self-to%29%29" class="RktValLink" data-pltdoc="x">copy-self-to</a></span> in <span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span>.</div><div class="SIntrapara">In addition to the default <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._copy-self-to%29%29" class="RktValLink" data-pltdoc="x">copy-self-to</a></span> in <span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span> work,
 this editor&rsquo;s file format, wordbreak function, wordbreak map,
 click-between-threshold, caret visibility state, overwrite mode
 state, and autowrap bitmap are installed into <span class="RktVar">dest</span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._cut))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._cut%29%29" class="RktValDef RktValLink" data-pltdoc="x">cut</a></span><span class="hspace">&nbsp;</span>[<span class="RktVar">extend?</span><span class="hspace">&nbsp;</span><span class="RktVar">time</span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">end</span>]<span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">extend?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">time</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-integer?</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">end</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">end</span></td></tr></table></blockquote></div><div class="SIntrapara">Overrides <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._cut%29%29" class="RktValLink" data-pltdoc="x">cut</a></span> in <span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span>.</div><div class="SIntrapara">Copies and then deletes the specified range. If <span class="RktVar">extend?</span> is not
 <span class="RktVal">#f</span>, the old clipboard contents are appended. If <span class="RktVar">start</span> is
 <span class="RktVal">'</span><span class="RktVal">start</span> or <span class="RktVar">end</span> is <span class="RktVal">'</span><span class="RktVal">end</span>, then the current
 selection start/end is used.</div></p><p>See <a href="editor-overview.html#%28part._editorcutandpastetime%29" data-pltdoc="x">Cut and Paste Time Stamps</a> for a discussion of the <span class="RktVar">time</span> argument. If
 <span class="RktVar">time</span> is outside the platform-specific range of times,
 an <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=exns.html%23%2528def._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._exn%7E3afail%7E3acontract%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exn:fail:contract</a></span> exception is raised.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._delete))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._delete%29%29" class="RktValDef RktValLink" data-pltdoc="x">delete</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>[<span class="RktVar">end</span><span class="hspace">&nbsp;</span><span class="RktVar">scroll-ok?</span>]<span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">back</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">back</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">scroll-ok?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._delete%29%29" class="RktValDef RktValLink" data-pltdoc="x">delete</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Deletes the specified range or the currently selected text (when no
 range is provided) in the editor. If <span class="RktVar">start</span> is
 <span class="RktVal">'</span><span class="RktVal">start</span>, then the starting selection <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is
 used; if <span class="RktVar">end</span> is <span class="RktVal">'</span><span class="RktVal">back</span>, then only the character
 preceding <span class="RktVar">start</span> is deleted.  If <span class="RktVar">scroll-ok?</span> is not
 <span class="RktVal">#f</span> and <span class="RktVar">start</span> is the same as the current caret
 <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>, then the editor&rsquo;s <a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a> may be
 scrolled to show the new selection <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>.</div></p><p>The content of an editor can be changed
by the
system in response to other method
calls, and such changes do not go through this method; use <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-delete%29%29" class="RktValLink" data-pltdoc="x">on-delete</a></span> to
monitor content deletion changes.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._do-copy))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._do-copy%29%29" class="RktValDef RktValLink" data-pltdoc="x">do-copy</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span><span class="RktVar">time</span><span class="hspace">&nbsp;</span><span class="RktVar">extend?</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">time</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">extend?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span></td></tr></table></blockquote></div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called to copy a region of the editor into the clipboard.  This method
 is provided so that it can be overridden by subclasses.  Do not call
 this method directly; instead, call <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._copy%29%29" class="RktValLink" data-pltdoc="x">copy</a></span>.</div></p><p>See <a href="editor-overview.html#%28part._editorcutandpastetime%29" data-pltdoc="x">Cut and Paste Time Stamps</a> for a discussion of the <span class="RktVar">time</span> argument. If
 <span class="RktVar">time</span> is outside the platform-specific range of times,
 an <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=exns.html%23%2528def._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._exn%7E3afail%7E3acontract%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exn:fail:contract</a></span> exception is raised.</p><p><span style="font-style: italic">Default implementation:</span> 
Copy the data from <span class="RktVar">start</span> to <span class="RktVar">end</span>, extending the current
 clipboard contexts if <span class="RktVar">extend?</span> is not <span class="RktVal">#f</span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._do-paste))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._do-paste%29%29" class="RktValDef RktValLink" data-pltdoc="x">do-paste</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">time</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">time</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called to paste the current contents of the clipboard into the editor.
 This method is provided so that it can be overridden by subclasses.
 Do not call this method directly; instead, call <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paste%29%29" class="RktValLink" data-pltdoc="x">paste</a></span>.</div></p><p>See <a href="editor-overview.html#%28part._editorcutandpastetime%29" data-pltdoc="x">Cut and Paste Time Stamps</a> for a discussion of the <span class="RktVar">time</span> argument. If
 <span class="RktVar">time</span> is outside the platform-specific range of times,
 an <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=exns.html%23%2528def._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._exn%7E3afail%7E3acontract%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exn:fail:contract</a></span> exception is raised.</p><p><span style="font-style: italic">Default implementation:</span> 
Pastes into the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> <span class="RktVar">start</span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._do-paste-x-selection))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._do-paste-x-selection%29%29" class="RktValDef RktValLink" data-pltdoc="x">do-paste-x-selection</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">time</span><span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">time</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called to paste the current contents of the X11 selection on Unix (or the
 clipboard on Windows or Mac OS) into the editor.  This method is
 provided so that it can be overridden by subclasses.  Do not call
 this method directly; instead, call <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paste-x-selection%29%29" class="RktValLink" data-pltdoc="x">paste-x-selection</a></span>.</div></p><p>See <a href="editor-overview.html#%28part._editorcutandpastetime%29" data-pltdoc="x">Cut and Paste Time Stamps</a> for a discussion of the <span class="RktVar">time</span> argument. If
 <span class="RktVar">time</span> is outside the platform-specific range of times,
 an <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=exns.html%23%2528def._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._exn%7E3afail%7E3acontract%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exn:fail:contract</a></span> exception is raised.</p><p><span style="font-style: italic">Default implementation:</span> 
Pastes into the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> <span class="RktVar">start</span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._erase))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._erase%29%29" class="RktValDef RktValLink" data-pltdoc="x">erase</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Erases the contents of the editor.</div></p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._delete%29%29" class="RktValLink" data-pltdoc="x">delete</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._extend-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._extend-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">extend-position</a></span><span class="hspace">&nbsp;</span><span class="RktVar">pos</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">pos</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Updates the selection (see <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-position%29%29" class="RktValLink" data-pltdoc="x">set-position</a></span>) based on
the result of <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-extend-end-position%29%29" class="RktValLink" data-pltdoc="x">get-extend-end-position</a></span>,
<span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-extend-start-position%29%29" class="RktValLink" data-pltdoc="x">get-extend-start-position</a></span>, and <span class="RktVar">pos</span>.</div></p><p>If <span class="RktVar">pos</span> is before the extend start and extend end positions,
then the selection goes from <span class="RktVar">pos</span> to the extend end position.
If it is after, then the selection goes from the extend start position
to <span class="RktVar">pos</span>.</p><p>Use this method to implement shift-modified movement keys in order to
properly extend the selection.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._find-line))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-line%29%29" class="RktValDef RktValLink" data-pltdoc="x">find-line</a></span><span class="hspace">&nbsp;</span><span class="RktVar">y</span><span class="hspace">&nbsp;</span>[<span class="RktVar">on-it</span>]<span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">y</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">on-it</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">Given a <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> in the editor, returns the line at the
 <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>. Lines are numbered starting with <span class="RktVal">0</span>.</div></p><p>The <span class="RktVar">on-it</span> box is filled with <span class="RktVal">#t</span> if the line actually
touches this <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>, or <span class="RktVal">#f</span> otherwise, unless <span class="RktVar">on-it</span> is <span class="RktVal">#f</span>. (A large
 enough <span class="RktVar">y</span> will always return the last line number, but will
 set <span class="RktVar">on-it</span> to <span class="RktVal">#f</span>.)</p><p>The result is only valid when the editor is displayed
(see <a href="editor-overview.html#%28part._tb~3amiaoverview%29" data-pltdoc="x">Editor Structure and Terminology</a>). Editors are displayed when
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-admin%29%29" class="RktValLink" data-pltdoc="x">get-admin</a></span> returns an administrator (not <span class="RktVal">#f</span>). Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._find-newline))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-newline%29%29" class="RktValDef RktValLink" data-pltdoc="x">find-newline</a></span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">direction</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">direction</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">forward</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">backward</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">forward</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">eof</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">eof</span></td></tr></table></blockquote></div><div class="SIntrapara">Like <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-string%29%29" class="RktValLink" data-pltdoc="x">find-string</a></span>, but specifically finds a paragraph
break (possibly more efficiently than searching text).</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._find-next-non-string-snip))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-next-non-string-snip%29%29" class="RktValDef RktValLink" data-pltdoc="x">find-next-non-string-snip</a></span><span class="hspace">&nbsp;</span><span class="RktVar">after</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="snip_.html" class="RktValLink" data-pltdoc="x">snip%</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">after</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="snip_.html" class="RktValLink" data-pltdoc="x">snip%</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Given a snip, returns the next snip in the editor (after the given
 one) that is not an instance of <span class="RktSym"><a href="string-snip_.html" class="RktValLink" data-pltdoc="x">string-snip%</a></span>. If
 <span class="RktVal">#f</span> is given as the snip, the result is the first non-string
 snip in the editor (if any). If no non-string snip is found after the
 given snip, the result is <span class="RktVal">#f</span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._find-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">find-position</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">x</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">y</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">at-eol</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">on-it</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">edge-close</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">x</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">y</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">at-eol</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">on-it</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">edge-close</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">Given a <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> in the editor, returns the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> at the
 <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>.</div></p><p>See <a href="editor-overview.html#%28part._editoreol%29" data-pltdoc="x">End of Line Ambiguity</a> for a discussion of the <span class="RktVar">at-eol</span> argument.
 The <span class="RktVar">on-it</span> box is filled with <span class="RktVal">#t</span> if the line actually touches this
<a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>, or <span class="RktVal">#f</span> otherwise, unless <span class="RktVar">on-it</span> is <span class="RktVal">#f</span>.</p><p>The <span class="RktVar">edge-close</span> box is filled with a value
indicating how close the point is to the vertical edges of the <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>
when the point falls on the <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>, unless <span class="RktVar">edge-close</span> is <span class="RktVal">#f</span>. If the point is strictly to
 the left of the item&rsquo;s left edge, the value is <span class="RktVal"><span class="nobreak">-1</span>00.0</span>; if the point is at or
 to the right of the item&rsquo;s right edge, the value is <span class="RktVal">100.0</span>; otherwise, the value is
 zero or negative if the point is closest to the left, positive if the point
 is closest to the right edge of the <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>,
 and the magnitude of the value is the distance from the point to the edge
 of the <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>.</p><p>The result is only valid when the editor is displayed
(see <a href="editor-overview.html#%28part._tb~3amiaoverview%29" data-pltdoc="x">Editor Structure and Terminology</a>). Editors are displayed when
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-admin%29%29" class="RktValLink" data-pltdoc="x">get-admin</a></span> returns an administrator (not <span class="RktVal">#f</span>). Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._find-position-in-line))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-position-in-line%29%29" class="RktValDef RktValLink" data-pltdoc="x">find-position-in-line</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">line</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">x</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">at-eol</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">on-it</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">edge-close</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">line</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">x</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">at-eol</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">on-it</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">edge-close</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">Given a <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> within a line of the editor, returns the
 <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> at the <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>. Lines are numbered starting with <span class="RktVal">0</span>.</div></p><p>See <a href="editor-overview.html#%28part._editoreol%29" data-pltdoc="x">End of Line Ambiguity</a> for a discussion of the <span class="RktVar">at-eol</span> argument.
 The <span class="RktVar">on-it</span> box is filled with <span class="RktVal">#t</span> if the line actually
touches this <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>, or <span class="RktVal">#f</span> otherwise, unless <span class="RktVar">on-it</span> is <span class="RktVal">#f</span>.</p><p>See <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-position%29%29" class="RktValLink" data-pltdoc="x">find-position</a></span> for a discussion of
 <span class="RktVar">edge-close</span>.</p><p>The result is only valid when the editor is displayed
(see <a href="editor-overview.html#%28part._tb~3amiaoverview%29" data-pltdoc="x">Editor Structure and Terminology</a>). Editors are displayed when
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-admin%29%29" class="RktValLink" data-pltdoc="x">get-admin</a></span> returns an administrator (not <span class="RktVal">#f</span>). Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._find-snip))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-snip%29%29" class="RktValDef RktValLink" data-pltdoc="x">find-snip</a></span><span class="hspace">&nbsp;</span><span class="RktVar">pos</span><span class="hspace">&nbsp;</span><span class="RktVar">direction</span><span class="hspace">&nbsp;</span>[<span class="RktVar">s-pos</span>]<span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="snip_.html" class="RktValLink" data-pltdoc="x">snip%</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">pos</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">direction</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">before-or-none</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">before</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">after</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">after-or-none</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">s-pos</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the snip at a given <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>, or <span class="RktVal">#f</span> if an appropriate
 snip cannot be found.</div></p><p><div class="SIntrapara">If the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> <span class="RktVar">pos</span> is between
two snips, <span class="RktVar">direction</span> specifies which snip to return; <span class="RktVar">direction</span>
can be any of the following:
</div><div class="SIntrapara"><ul><li><p><span class="RktVal">'</span><span class="RktVal">before-or-none</span> &#8212;<wbr></wbr> returns the snip before the
<a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>, or <span class="RktVal">#f</span> if <span class="RktVar">pos</span> is <span class="RktVal">0</span></p></li><li><p><span class="RktVal">'</span><span class="RktVal">before</span> &#8212;<wbr></wbr> returns the snip before the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>,
or the first snip if <span class="RktVar">pos</span> is <span class="RktVal">0</span></p></li><li><p><span class="RktVal">'</span><span class="RktVal">after</span> &#8212;<wbr></wbr> returns the snip after the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>, or
the last snip if <span class="RktVar">pos</span> is the last <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a></p></li><li><p><span class="RktVal">'</span><span class="RktVal">after-or-none</span> &ndash; returns the snip after the
<a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>, or <span class="RktVal">#f</span> if <span class="RktVar">pos</span> is the last <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> or larger</p></li></ul></div></p><p>The <span class="RktVar">s-pos</span> box is filled with the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> where the returned snip starts, unless <span class="RktVar">s-pos</span> is <span class="RktVal">#f</span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._find-string))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-string%29%29" class="RktValDef RktValLink" data-pltdoc="x">find-string</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">str</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">direction</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">get-start?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">case-sensitive?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">non-empty-string?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">direction</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">forward</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">backward</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">forward</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">eof</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">eof</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">get-start?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">case-sensitive?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr></table></blockquote></div><div class="SIntrapara">Finds an exact-match string in the editor and returns its <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>.
 If the string is not found, <span class="RktVal">#f</span> is returned.</div></p><p>The <span class="RktVar">direction</span> argument can be <span class="RktVal">'</span><span class="RktVal">forward</span> or
 <span class="RktVal">'</span><span class="RktVal">backward</span>, indicating a forward search or backward
 search respectively. In the case of a forward search, the return
 value is the starting <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of the string; for a backward search,
 the ending <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is returned.  However, if <span class="RktVar">get-start?</span> is
 <span class="RktVal">#f</span>, then the other end of the string <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> will be
 returned.</p><p>The <span class="RktVar">start</span> and <span class="RktVar">end</span> arguments set the starting and ending
 <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>s of a forward search (use <span class="RktVar">start</span> &gt; <span class="RktVar">end</span> for a
 backward search). If <span class="RktVar">start</span> is <span class="RktVal">'</span><span class="RktVal">start</span>, then the search
 starts at the start of the selection. If <span class="RktVar">end</span> is <span class="RktVal">'</span><span class="RktVal">eof</span>,
 then the search continues to the end (for a forward search) or start
 (for a backward search) of the editor.</p><p>If <span class="RktVar">case-sensitive?</span> is <span class="RktVal">#f</span>, then an uppercase and lowercase
 of each alphabetic character are treated as equivalent.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._find-string-embedded))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-string-embedded%29%29" class="RktValDef RktValLink" data-pltdoc="x">find-string-embedded</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">str</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">direction</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">get-start?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">case-sensitive?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr></table></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="prototype"><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._cons%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">cons/c</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528form._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._flat-rec-contract%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">flat-rec-contract</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktSym">nested-editor-search-result</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._cons%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">cons/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktSym">nested-editor-search-result</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">non-empty-string?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">direction</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">forward</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">backward</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">forward</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">eof</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">eof</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">get-start?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">case-sensitive?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr></table></blockquote></div><div class="SIntrapara">Like <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-string%29%29" class="RktValLink" data-pltdoc="x">find-string</a></span>, but also searches in embedded editors,
     returning a series of cons pairs whose <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._car%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">car</a></span> positions
     are the editors on the path to the editor where the search
     string occurred and whose final <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._cdr%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">cdr</a></span> position is the
     search result position.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._find-string-all))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-string-all%29%29" class="RktValDef RktValLink" data-pltdoc="x">find-string-all</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">str</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">direction</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">get-start?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">case-sensitive</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._listof%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">non-empty-string?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">direction</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">forward</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">backward</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">forward</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">eof</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">eof</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">get-start?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">case-sensitive</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr></table></blockquote></div><div class="SIntrapara">Finds all occurrences of a string using <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-string%29%29" class="RktValLink" data-pltdoc="x">find-string</a></span>. If
 no occurrences are found, the empty list is returned.  The arguments
 are the same as for <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-string%29%29" class="RktValLink" data-pltdoc="x">find-string</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._find-string-embedded-all))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-string-embedded-all%29%29" class="RktValDef RktValLink" data-pltdoc="x">find-string-embedded-all</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">str</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">direction</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">get-start?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">case-sensitive</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr></table></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="prototype"><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._listof%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._cons%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">cons/c</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528form._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._flat-rec-contract%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">flat-rec-contract</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktSym">nested-editor-search-result</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._cons%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">cons/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktSym">nested-editor-search-result</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._listof%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">non-empty-string?</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">direction</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">forward</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">backward</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">forward</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">eof</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">eof</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">get-start?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">case-sensitive</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr></table></blockquote></div><div class="SIntrapara">Like <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-string-embedded%29%29" class="RktValLink" data-pltdoc="x">find-string-embedded</a></span>, but also searches in embedded
editors, returning search  results a list of the editors that contain
the matches.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._find-wordbreak))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-wordbreak%29%29" class="RktValDef RktValLink" data-pltdoc="x">find-wordbreak</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">reason</span><span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">reason</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">caret</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">line</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">selection</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">user1</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">user2</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Finds wordbreaks in the editor using the current wordbreak procedure.
 See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-wordbreak-func%29%29" class="RktValLink" data-pltdoc="x">set-wordbreak-func</a></span>.</div></p><p>The contents of the <span class="RktVar">start</span> argument specifies an <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> to start
 searching backwards to the next word start; its will be filled with
 the starting <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of the word that is found.  If <span class="RktVar">start</span> is
 <span class="RktVal">#f</span>, no backward search is performed.</p><p>The contents of the <span class="RktVar">end</span> argument specifies an <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> to start
 searching forwards to the next word end; its will be filled with the
 ending <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of the word that is found.  If <span class="RktVar">end</span> is
 <span class="RktVal">#f</span>, no forward search is performed.</p><p>The <span class="RktVar">reason</span> argument specifies more information about what the
 wordbreak is used for. For example, the wordbreaks used to move the
 caret may be different from the wordbreaks used to break lines. The
 possible values of <span class="RktVar">reason</span> are:</p><ul><li><p><span class="RktVal">'</span><span class="RktVal">caret</span> &#8212;<wbr></wbr> find a wordbreak suitable for moving the caret</p></li><li><p><span class="RktVal">'</span><span class="RktVal">line</span> &#8212;<wbr></wbr> find a wordbreak suitable for breaking lines</p></li><li><p><span class="RktVal">'</span><span class="RktVal">selection</span> &#8212;<wbr></wbr> find a wordbreak suitable for selecting the closest word</p></li><li><p><span class="RktVal">'</span><span class="RktVal">user1</span> &#8212;<wbr></wbr> for other (not built-in) uses</p></li><li><p><span class="RktVal">'</span><span class="RktVal">user2</span> &#8212;<wbr></wbr> for other (not built-in) uses</p></li></ul><p>The actual handling of <span class="RktVar">reason</span> is controlled by the current
 wordbreak procedure; see <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-wordbreak-func%29%29" class="RktValLink" data-pltdoc="x">set-wordbreak-func</a></span>for
 details. The default handler and default wordbreak map treats
 alphanumeric characters the same for <span class="RktVal">'</span><span class="RktVal">caret</span>, <span class="RktVal">'</span><span class="RktVal">line</span>,
 and <span class="RktVal">'</span><span class="RktVal">selection</span>. Non-alphanumeric, non-space, non-hyphen
 characters do not break lines, but do break caret and selection
 words.  For example a comma should not be counted as part of the
 preceding word for moving the caret past the word or double-clicking
 the word, but the comma should stay on the same line as the word (and
 thus counts in the same &ldquo;line word&rdquo;).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._flash-off))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._flash-off%29%29" class="RktValDef RktValLink" data-pltdoc="x">flash-off</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Turns off the hiliting and shows the normal selection range again; see
 <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._flash-on%29%29" class="RktValLink" data-pltdoc="x">flash-on</a></span>. There is no effect if this method is called
 when flashing is already off.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._flash-on))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._flash-on%29%29" class="RktValDef RktValLink" data-pltdoc="x">flash-on</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">at-eol?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">scroll?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">timeout</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">at-eol?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">scroll?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">timeout</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">500</span></td></tr></table></blockquote></div><div class="SIntrapara">Temporarily hilites a region in the editor without changing the
 current selection.</div></p><p>See <a href="editor-overview.html#%28part._editoreol%29" data-pltdoc="x">End of Line Ambiguity</a> for a discussion of the <span class="RktVar">at-eol?</span> argument. If
 <span class="RktVar">scroll?</span> is not <span class="RktVal">#f</span>, the editor&rsquo;s <a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a> will be scrolled
 if necessary to show the hilited region. If <span class="RktVar">timeout</span> is greater
 than 0, then the hiliting will be automatically turned off after the
 given number of milliseconds.</p><p>See also  <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._flash-off%29%29" class="RktValLink" data-pltdoc="x">flash-off</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-anchor))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-anchor%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-anchor</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns <span class="RktVal">#t</span> if the selection is currently auto-extending. See
 also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-anchor%29%29" class="RktValLink" data-pltdoc="x">set-anchor</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-autowrap-bitmap-width))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-autowrap-bitmap-width%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-autowrap-bitmap-width</a></span><span class="RktPn"></span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the width of the bitmap last passed to <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-autowrap-bitmap%29%29" class="RktValLink" data-pltdoc="x">set-autowrap-bitmap</a></span>
or <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._zero%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">zero?</a></span> if no bitmap has been passed to <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-autowrap-bitmap%29%29" class="RktValLink" data-pltdoc="x">set-autowrap-bitmap</a></span> or
if <span class="RktVal">#f</span> was most recently passed.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-between-threshold))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-between-threshold%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-between-threshold</a></span><span class="RktPn"></span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns an amount used to determine the meaning of a user click. If
 the click falls within the threshold of a position between two
 <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s, then the click registers on the space between the
 <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s rather than on either <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>.</div></p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-between-threshold%29%29" class="RktValLink" data-pltdoc="x">set-between-threshold</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-character))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-character%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-character</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=characters.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._char%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">char?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the character following the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>
 <span class="RktVar">start</span>. The character corresponds to getting non-flattened
 text from the editor.</div></p><p>If <span class="RktVar">start</span> is greater than or equal to the last
 <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>, <span class="RktVal">#\nul</span> is returned.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-end-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-end-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-end-position</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns the ending <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of the current selection. See
 also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-position%29%29" class="RktValLink" data-pltdoc="x">get-position</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-extend-start-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-extend-start-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-extend-start-position</a></span><span class="RktPn"></span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the beginning of the &ldquo;extend&rdquo; region if the selection
is currently being extended via, e.g., shift and a cursor movement key;
otherwise returns the same value as <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-start-position%29%29" class="RktValLink" data-pltdoc="x">get-start-position</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-extend-end-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-extend-end-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-extend-end-position</a></span><span class="RktPn"></span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the beginning of the &ldquo;extend&rdquo; region if the selection
is currently being extended via, e.g., shift and a cursor movement key;
otherwise returns the same value as <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-end-position%29%29" class="RktValLink" data-pltdoc="x">get-end-position</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-file-format))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-file-format%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-file-format</a></span><span class="RktPn"></span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">standard</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">text</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">text-force-cr</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the format of the last file saved from or loaded into this
 editor. See also <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._load-file%29%29" class="RktValLink" data-pltdoc="x">load-file</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-line-spacing))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-line-spacing%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-line-spacing</a></span><span class="RktPn"></span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the spacing inserted by the editor between each line. This
 spacing is included in the reported height of each line.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-overwrite-mode))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-overwrite-mode%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-overwrite-mode</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns <span class="RktVal">#t</span> if the editor is in overwrite mode, <span class="RktVal">#f</span>
 otherwise. Overwrite mode only affects the way that <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-default-char%29%29" class="RktValLink" data-pltdoc="x">on-default-char</a></span> handles keyboard input for insertion characters. See
 also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-overwrite-mode%29%29" class="RktValLink" data-pltdoc="x">set-overwrite-mode</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-padding))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-padding%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-padding</a></span><span class="RktPn"></span><span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><table cellspacing="0" cellpadding="0"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns the editor&rsquo;s padding for its left, top, right, and bottom
sides (in that order).</div></p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-padding%29%29" class="RktValLink" data-pltdoc="x">set-padding</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-position</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>[<span class="RktVar">end</span>]<span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the current selection range in <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>s.  If
nothing is selected, the <span class="RktVar">start</span> and <span class="RktVar">end</span> will be
the same number and that number will be where the insertion point is.</div></p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-start-position%29%29" class="RktValLink" data-pltdoc="x">get-start-position</a></span>
and <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-end-position%29%29" class="RktValLink" data-pltdoc="x">get-end-position</a></span>.</p><p>The <span class="RktVar">start</span> box is filled with the starting <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of the selection, unless <span class="RktVar">start</span> is <span class="RktVal">#f</span>.
The <span class="RktVar">end</span> box is filled with the ending <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of the selection, unless <span class="RktVar">end</span> is <span class="RktVal">#f</span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-region-data))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-region-data%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-region-data</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">end</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="editor-data_.html" class="RktValLink" data-pltdoc="x">editor-data%</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Gets extra data associated with a given region. See
 <a href="editor-overview.html#%28part._editordata%29" data-pltdoc="x">Editor Data</a> for more information.</div></p><p>This method is <span style="font-style: italic">not</span> called when the whole editor is saved to a
 file. In such cases, the information can be stored in the header or
 footer; see <a href="editor-overview.html#%28part._globaleditordata%29" data-pltdoc="x">Global Data: Headers and Footers</a>.</p><p>This method is meant to be overridden; the default <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-region-data%29%29" class="RktValLink" data-pltdoc="x">set-region-data</a></span> method does not store information to be retrieved by
 this method.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-revision-number))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-revision-number%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-revision-number</a></span><span class="RktPn"></span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns an inexact number that increments every time the editor is
 changed in one of the following ways: a snip is inserted (see
 <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-insert%29%29" class="RktValLink" data-pltdoc="x">after-insert</a></span>), a snip is deleted (see <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-delete%29%29" class="RktValLink" data-pltdoc="x">after-delete</a></span>), a snip is split (see <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-split-snip%29%29" class="RktValLink" data-pltdoc="x">after-split-snip</a></span>), snips are merged (see <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-merge-snips%29%29" class="RktValLink" data-pltdoc="x">after-merge-snips</a></span>), or a snip changes its count (which is rare; see
 <span class="RktSym"><a href="snip-admin_.html#%28meth._%28%28%28lib._racket%2Fsnip..rkt%29._snip-admin~25%29._recounted%29%29" class="RktValLink" data-pltdoc="x">recounted</a></span>).</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-snip-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-snip-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-snip-position</a></span><span class="hspace">&nbsp;</span><span class="RktVar">snip</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">snip</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="snip_.html" class="RktValLink" data-pltdoc="x">snip%</a></span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the starting <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of a given snip or
 <span class="RktVal">#f</span> if the snip is not in this editor.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-snip-position-and-location))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-snip-position-and-location%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-snip-position-and-location</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">snip</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">pos</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">x</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">y</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">snip</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="snip_.html" class="RktValLink" data-pltdoc="x">snip%</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">pos</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">x</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">y</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">Gets a snip&rsquo;s <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> and top left <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> in editor
 coordinates.  The return value is <span class="RktVal">#t</span> if the snip is found,
 <span class="RktVal">#f</span> otherwise.</div></p><p>The <span class="RktVar">pos</span> box is filled with starting <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of <span class="RktVar">snip</span>, unless <span class="RktVar">pos</span> is <span class="RktVal">#f</span>.
The <span class="RktVar">x</span> box is filled with left <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> of <span class="RktVar">snip</span> in editor coordinates, unless <span class="RktVar">x</span> is <span class="RktVal">#f</span>.
The <span class="RktVar">y</span> box is filled with top <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> of <span class="RktVar">snip</span> in editor coordinates, unless <span class="RktVar">y</span> is <span class="RktVal">#f</span>.</p><p>When <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> information is requested: The result is only valid when the editor is displayed
(see <a href="editor-overview.html#%28part._tb~3amiaoverview%29" data-pltdoc="x">Editor Structure and Terminology</a>). Editors are displayed when
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-admin%29%29" class="RktValLink" data-pltdoc="x">get-admin</a></span> returns an administrator (not <span class="RktVal">#f</span>). Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-start-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-start-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-start-position</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns the starting <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of the current selection. See also
 <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-position%29%29" class="RktValLink" data-pltdoc="x">get-position</a></span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-styles-sticky))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-styles-sticky%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-styles-sticky</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">In the normal mode for a text editor, style settings are sticky. With
 sticky styles, when a string or character is inserted into an editor,
 it gets the style of the snip preceding the insertion point (or the
 snip that includes the insertion point if text is inserted into an
 exiting string snip). Alternatively, if <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._change-style%29%29" class="RktValLink" data-pltdoc="x">change-style</a></span>
 is called to set the style at the caret <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> (when it
 is not a range), then the style is remembered; if the editor is not
 changed before text is inserted at the caret, then the text gets the
 remembered style.</div></p><p>With non-sticky styles, text inserted into an editor always gets the
 style in the editor&rsquo;s style list named by <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._default-style-name%29%29" class="RktValLink" data-pltdoc="x">default-style-name</a></span>.</p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-styles-sticky%29%29" class="RktValLink" data-pltdoc="x">set-styles-sticky</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-tabs))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-tabs%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-tabs</a></span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">length</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">tab-width</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">in-units</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._listof%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">length</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">tab-width</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">in-units</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the current tab-position array as a list.</div></p><p>The <span class="RktVar">length</span> box is filled with the length of the tab array (and therefore the returned
list), unless <span class="RktVar">length</span> is <span class="RktVal">#f</span>.
The <span class="RktVar">tab-width</span> box is filled with the width used for tabs past the
end of the tab array, unless <span class="RktVar">tab-width</span> is <span class="RktVal">#f</span>.
The <span class="RktVar">in-units</span> box is filled with <span class="RktVal">#t</span> if the tabs are specified in
canvas units or <span class="RktVal">#f</span> if they are specified in space-widths, unless <span class="RktVar">in-units</span> is <span class="RktVal">#f</span>.</p><p>See also
<span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-tabs%29%29" class="RktValLink" data-pltdoc="x">set-tabs</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-text))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-text%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-text</a></span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">flattened?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">force-cr?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">string?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">eof</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">eof</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">flattened?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">force-cr?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">Gets the text from <span class="RktVar">start</span> to <span class="RktVar">end</span>. If <span class="RktVar">end</span> is
 <span class="RktVal">'</span><span class="RktVal">eof</span>, then the contents are returned from <span class="RktVar">start</span> until the
 end of the editor.</div></p><p>If <span class="RktVar">flattened?</span> is not <span class="RktVal">#f</span>, then flattened text is returned.
 See <a href="editor-overview.html#%28part._editorflattened%29" data-pltdoc="x">Flattened Text</a> for a discussion of flattened vs. non-flattened
 text.</p><p>If <span class="RktVar">force-cr?</span> is not <span class="RktVal">#f</span> and <span class="RktVar">flattened?</span> is not
 <span class="RktVal">#f</span>, then automatic newlines (from word-wrapping) are
 written into the return string as real newlines.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-top-line-base))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-top-line-base%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-top-line-base</a></span><span class="RktPn"></span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the distance from the top of the editor to the alignment
 baseline of the top line. This method is primarily used when an
 editor is an <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a> within another editor.
The reported baseline distance includes the editor&rsquo;s
 top padding (see <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-padding%29%29" class="RktValLink" data-pltdoc="x">set-padding</a></span>).</div></p><p>The result is only valid when the editor is displayed
(see <a href="editor-overview.html#%28part._tb~3amiaoverview%29" data-pltdoc="x">Editor Structure and Terminology</a>). Editors are displayed when
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-admin%29%29" class="RktValLink" data-pltdoc="x">get-admin</a></span> returns an administrator (not <span class="RktVal">#f</span>). For <span class="RktSym"><a href="" class="RktValLink" data-pltdoc="x">text%</a></span> objects, calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information if a maximum width is set for the editor, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-visible-line-range))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-visible-line-range%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-visible-line-range</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">all?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">all?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the range of lines which are currently visible (or partially
 visible) to the user. Lines are numbered starting with <span class="RktVal">0</span>.</div></p><p>The <span class="RktVar">start</span> box is filled with first line visible to the user, unless <span class="RktVar">start</span> is <span class="RktVal">#f</span>.
The <span class="RktVar">end</span> box is filled with last line visible to the user, unless <span class="RktVar">end</span> is <span class="RktVal">#f</span>.</p><p>If the editor is displayed by multiple canvases and <span class="RktVar">all?</span> is
 <span class="RktVal">#t</span>, then the computed range includes all visible lines in all
 <a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a>s. Otherwise, the range includes only the visible lines in the
 current <a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a>.</p><p>The result is only valid when the editor is displayed
(see <a href="editor-overview.html#%28part._tb~3amiaoverview%29" data-pltdoc="x">Editor Structure and Terminology</a>). Editors are displayed when
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-admin%29%29" class="RktValLink" data-pltdoc="x">get-admin</a></span> returns an administrator (not <span class="RktVal">#f</span>). Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-visible-position-range))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-visible-position-range%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-visible-position-range</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">all?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">all?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the range of <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>s that are currently visible (or
 partially visible) to the user.</div></p><p>The <span class="RktVar">start</span> box is filled with first <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> visible to the user, unless <span class="RktVar">start</span> is <span class="RktVal">#f</span>.
The <span class="RktVar">end</span> box is filled with last <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> visible to the user, unless <span class="RktVar">end</span> is <span class="RktVal">#f</span>.</p><p>If the editor is displayed by multiple canvases and <span class="RktVar">all?</span> is
 <span class="RktVal">#t</span>, then the computed range includes all visible <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>s in
 all <a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a>s. Otherwise, the range includes only the visible
 <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>s in the current <a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a>.</p><p>The result is only valid when the editor is displayed
(see <a href="editor-overview.html#%28part._tb~3amiaoverview%29" data-pltdoc="x">Editor Structure and Terminology</a>). Editors are displayed when
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-admin%29%29" class="RktValLink" data-pltdoc="x">get-admin</a></span> returns an administrator (not <span class="RktVal">#f</span>). Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._get-wordbreak-map))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-wordbreak-map%29%29" class="RktValDef RktValLink" data-pltdoc="x">get-wordbreak-map</a></span><span class="RktPn"></span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="editor-wordbreak-map_.html" class="RktValLink" data-pltdoc="x">editor-wordbreak-map%</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the wordbreaking map that is used by the standard wordbreaking
 function. See <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-wordbreak-map%29%29" class="RktValLink" data-pltdoc="x">set-wordbreak-map</a></span> and
 <span class="RktSym"><a href="editor-wordbreak-map_.html" class="RktValLink" data-pltdoc="x">editor-wordbreak-map%</a></span> for more information.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._hide-caret))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._hide-caret%29%29" class="RktValDef RktValLink" data-pltdoc="x">hide-caret</a></span><span class="hspace">&nbsp;</span><span class="RktVar">hide?</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">hide?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Determines whether the caret is shown when the editor has the keyboard
 focus.</div></p><p>If <span class="RktVar">hide?</span> is not <span class="RktVal">#f</span>, then the caret or selection hiliting
 will not be drawn for the editor. The editor can still own the
 keyboard focus, but no caret will be drawn to indicate the focus.</p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._caret-hidden~3f%29%29" class="RktValLink" data-pltdoc="x">caret-hidden?</a></span> and <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._lock%29%29" class="RktValLink" data-pltdoc="x">lock</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._insert))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._insert%29%29" class="RktValDef RktValLink" data-pltdoc="x">insert</a></span><span class="hspace">&nbsp;</span><span class="RktVar">str</span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>[<span class="RktVar">end</span><span class="hspace">&nbsp;</span><span class="RktVar">scroll-ok?</span>]<span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">string?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">scroll-ok?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="prototype"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._insert%29%29" class="RktValDef RktValLink" data-pltdoc="x">insert</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">n</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">str</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">scroll-ok?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td valign="top"><span class="hspace">&nbsp;&nbsp;</span></td><td valign="top"><span class="RktVar">n</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">:</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._%7E3c%7E3d%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">&lt;=/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string-length%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">string-length</a></span><span class="hspace">&nbsp;</span><span class="RktVar">str</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">string?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">scroll-ok?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._insert%29%29" class="RktValDef RktValLink" data-pltdoc="x">insert</a></span><span class="hspace">&nbsp;</span><span class="RktVar">str</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">string?</a></span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._insert%29%29" class="RktValDef RktValLink" data-pltdoc="x">insert</a></span><span class="hspace">&nbsp;</span><span class="RktVar">n</span><span class="hspace">&nbsp;</span><span class="RktVar">str</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td valign="top"><span class="hspace">&nbsp;&nbsp;</span></td><td valign="top"><span class="RktVar">n</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">:</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._%7E3c%7E3d%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">&lt;=/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string-length%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">string-length</a></span><span class="hspace">&nbsp;</span><span class="RktVar">str</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">string?</a></span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="prototype"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._insert%29%29" class="RktValDef RktValLink" data-pltdoc="x">insert</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">snip</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">scroll-ok?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">snip</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="snip_.html" class="RktValLink" data-pltdoc="x">snip%</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">scroll-ok?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._insert%29%29" class="RktValDef RktValLink" data-pltdoc="x">insert</a></span><span class="hspace">&nbsp;</span><span class="RktVar">snip</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">snip</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="snip_.html" class="RktValLink" data-pltdoc="x">snip%</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._insert%29%29" class="RktValDef RktValLink" data-pltdoc="x">insert</a></span><span class="hspace">&nbsp;</span><span class="RktVar">char</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">char</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=characters.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._char%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">char?</a></span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._insert%29%29" class="RktValDef RktValLink" data-pltdoc="x">insert</a></span><span class="hspace">&nbsp;</span><span class="RktVar">char</span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>[<span class="RktVar">end</span>]<span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">char</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=characters.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._char%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">char?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span></td></tr></table></blockquote></div><div class="SIntrapara">Overrides <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._insert%29%29" class="RktValLink" data-pltdoc="x">insert</a></span> in <span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span>.</div><div class="SIntrapara">Inserts text or a snip into <span class="RktVar">a-text</span> at <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>
 <span class="RktVar">start</span>.  If <span class="RktVar">n</span> is provided, the only the first
 <span class="RktVar">n</span> characters of <span class="RktVar">str</span> are inserted.</div></p><p>When a <span class="RktVar">snip</span> is provided: The snip cannot be inserted into
 multiple editors or multiple times within a single editor. As the
 snip is inserted, its current style is converted to one in the
 editor&rsquo;s style list; see also <span class="RktSym"><a href="style-list_.html#%28meth._%28%28%28lib._racket%2Fsnip..rkt%29._style-list~25%29._convert%29%29" class="RktValLink" data-pltdoc="x">convert</a></span>.</p><p>When a <span class="RktVar">char</span> is provided: Multiple calls to the character-inserting method are grouped together
for undo purposes, since this case of the method is typically used
for handling user keystrokes. However, this undo-grouping feature
interferes with the undo grouping performed by
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._begin-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">begin-edit-sequence</a></span> and
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._end-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">end-edit-sequence</a></span>, so the string-inserting
method should be used instead during undoable edit sequences.</p><p>When <span class="RktVar">start</span> is not provided, the current selection start is
 used. If the current selection covers a range of <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s,
 then <span class="RktVar">char</span> replaces the selected text. The selection&rsquo;s start
 and end <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>s are moved to the end of the inserted
 character.</p><p>For a case where <span class="RktVar">end</span> is not provided and has no default, the
 current selection end is used. Otherwise, if <span class="RktVar">end</span> is not
 <span class="RktVal">'</span><span class="RktVal">same</span>, then the inserted value replaces the region from
 <span class="RktVar">start</span> to <span class="RktVar">end</span>, and the selection is left at the end
 of the inserted text. Otherwise, if the insertion <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>
 is before or equal to the selection&rsquo;s start/end <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>,
 then the selection&rsquo;s start/end <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is incremented by
 the length of <span class="RktVar">str</span>.</p><p>If <span class="RktVar">scroll-ok?</span> is not <span class="RktVal">#f</span> and <span class="RktVar">start</span> is the
 same as the current selection&rsquo;s start <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>, then the
 editor&rsquo;s <a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a> is scrolled to show the new selection
 <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>.</p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-styles-sticky%29%29" class="RktValLink" data-pltdoc="x">get-styles-sticky</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._kill))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._kill%29%29" class="RktValDef RktValLink" data-pltdoc="x">kill</a></span><span class="hspace">&nbsp;</span>[<span class="RktVar">time</span>]<span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">time</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-integer?</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">0</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._kill%29%29" class="RktValDef RktValLink" data-pltdoc="x">kill</a></span><span class="hspace">&nbsp;</span><span class="RktVar">time</span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">end</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">time</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Overrides <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._kill%29%29" class="RktValLink" data-pltdoc="x">kill</a></span> in <span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span>.</div><div class="SIntrapara">Cuts the text in the given region. If <span class="RktVar">start</span> and <span class="RktVar">end</span>
 are not supplied, then the selected region plus all whitespace to the
 end of line is cut; the newline is also cut if only whitespace exists
 between the selection and the end of line.</div></p><p>See <a href="editor-overview.html#%28part._editorcutandpastetime%29" data-pltdoc="x">Cut and Paste Time Stamps</a> for a discussion of the <span class="RktVar">time</span> argument. If
 <span class="RktVar">time</span> is outside the platform-specific range of times,
 an <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=exns.html%23%2528def._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._exn%7E3afail%7E3acontract%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exn:fail:contract</a></span> exception is raised.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._last-line))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._last-line%29%29" class="RktValDef RktValLink" data-pltdoc="x">last-line</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns the number of the last line in the editor. Lines are numbered
 starting with <span class="RktVal">0</span>, so this is one less than the number of lines
 in the editor.</div></p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paragraph-start-position%29%29" class="RktValLink" data-pltdoc="x">paragraph-start-position</a></span>, which
operates on paragraphs (determined by explicit newline characters)
instead of lines (determined by both explicit newline
characters and automatic line-wrapping).</p><p>Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information if a maximum width is set for the editor, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>). If the editor is not displayed and the editor has a
maximum width, line breaks are calculated as for
<span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-start-position%29%29" class="RktValLink" data-pltdoc="x">line-start-position</a></span> (which handles specially
the case of no display when the editor has a maximum width).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._last-paragraph))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._last-paragraph%29%29" class="RktValDef RktValLink" data-pltdoc="x">last-paragraph</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns the number of the last paragraph in the editor. Paragraphs are
 numbered starting with <span class="RktVal">0</span>, so this is one less than the
 number of paragraphs in the editor.</div></p><p>Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information if a maximum width is set for the editor, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._last-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._last-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">last-position</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Returns the last selection <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> in the editor. This is
 also the number of <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s in the editor.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._line-end-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-end-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">line-end-position</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">line</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">visible?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">line</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">visible?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the last <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of a given line. Lines are numbered starting with <span class="RktVal">0</span>.</div></p><p>If there are fewer than <span class="RktVar">line</span><span style="font-style: italic">-</span>1<span style="font-style: italic"></span> lines, the end of the
 last line is returned. If <span class="RktVar">line</span> is less than 0, then the end
 of the first line is returned.</p><p>If the line ends with <a href="snip_.html#%28tech._invisible%29" class="techoutside" data-pltdoc="x"><span class="techinside">invisible</span></a> <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s (such as a
 newline) and <span class="RktVar">visible?</span> is not <span class="RktVal">#f</span>, the first
 <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> before the <a href="snip_.html#%28tech._invisible%29" class="techoutside" data-pltdoc="x"><span class="techinside">invisible</span></a> <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s is
 returned.</p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paragraph-start-position%29%29" class="RktValLink" data-pltdoc="x">paragraph-start-position</a></span>, which
operates on paragraphs (determined by explicit newline characters)
instead of lines (determined by both explicit newline
characters and automatic line-wrapping).</p><p>Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information if a maximum width is set for the editor, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>). If the editor is not displayed and the editor has a
maximum width, line breaks are calculated as for
<span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-start-position%29%29" class="RktValLink" data-pltdoc="x">line-start-position</a></span> (which handles specially
the case of no display when the editor has a maximum width).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._line-length))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-length%29%29" class="RktValDef RktValLink" data-pltdoc="x">line-length</a></span><span class="hspace">&nbsp;</span><span class="RktVar">i</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">i</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the number of <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s in a given
line. Lines are numbered starting with <span class="RktVal">0</span>.</div></p><p>Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information if a maximum width is set for the editor, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>). If the editor is not displayed and the editor has a
maximum width, line breaks are calculated as for
<span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-start-position%29%29" class="RktValLink" data-pltdoc="x">line-start-position</a></span> (which handles specially
the case of no display when the editor has a maximum width).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._line-location))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-location%29%29" class="RktValDef RktValLink" data-pltdoc="x">line-location</a></span><span class="hspace">&nbsp;</span><span class="RktVar">line</span><span class="hspace">&nbsp;</span>[<span class="RktVar">top?</span>]<span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">line</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">top?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr></table></blockquote></div><div class="SIntrapara">Given a line number, returns the <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> of the line. Lines are numbered starting with <span class="RktVal">0</span>.</div></p><p>If <span class="RktVar">top?</span> is not <span class="RktVal">#f</span>, the <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> for the
 top of the line is returned; otherwise, the <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> for
 the bottom of the line is returned.</p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paragraph-start-position%29%29" class="RktValLink" data-pltdoc="x">paragraph-start-position</a></span>, which
operates on paragraphs (determined by explicit newline characters)
instead of lines (determined by both explicit newline
characters and automatic line-wrapping).</p><p>The result is only valid when the editor is displayed
(see <a href="editor-overview.html#%28part._tb~3amiaoverview%29" data-pltdoc="x">Editor Structure and Terminology</a>). Editors are displayed when
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-admin%29%29" class="RktValLink" data-pltdoc="x">get-admin</a></span> returns an administrator (not <span class="RktVal">#f</span>). Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._line-paragraph))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-paragraph%29%29" class="RktValDef RktValLink" data-pltdoc="x">line-paragraph</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the paragraph number of the paragraph containing the line.
 Lines are numbered starting with <span class="RktVal">0</span>. Paragraphs are numbered starting with <span class="RktVal">0</span>.</div></p><p>Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information if a maximum width is set for the editor, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>). If the editor is not displayed and the editor has a
maximum width, line breaks are calculated as for
<span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-start-position%29%29" class="RktValLink" data-pltdoc="x">line-start-position</a></span> (which handles specially
the case of no display when the editor has a maximum width).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._line-start-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-start-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">line-start-position</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">line</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">visible?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">line</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">visible?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the first <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of the given line. Lines are numbered starting with <span class="RktVal">0</span>.</div></p><p>If there are fewer than <span class="RktVar">line</span><span style="font-style: italic">-</span>1<span style="font-style: italic"></span> lines, the start of the
last line is returned. If <span class="RktVar">line</span> is less than 0, then
the start of the first line is returned.</p><p>If the line starts with <a href="snip_.html#%28tech._invisible%29" class="techoutside" data-pltdoc="x"><span class="techinside">invisible</span></a> <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s and <span class="RktVar">visible?</span> is not
 <span class="RktVal">#f</span>, the first <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> past the <a href="snip_.html#%28tech._invisible%29" class="techoutside" data-pltdoc="x"><span class="techinside">invisible</span></a> <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s is
 returned.</p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paragraph-start-position%29%29" class="RktValLink" data-pltdoc="x">paragraph-start-position</a></span>, which
operates on paragraphs (determined by explicit newline characters)
instead of lines (determined by both explicit newline
characters and automatic line-wrapping).</p><p>Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information if a maximum width is set for the editor, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>).</p><p><div class="SIntrapara">To calculate lines, if the following are true:
</div><div class="SIntrapara"><ul><li><p>the editor is not displayed (see <a href="editor-overview.html#%28part._tb~3amiaoverview%29" data-pltdoc="x">Editor Structure and Terminology</a>),</p></li><li><p>a maximum width is set for the editor, and</p></li><li><p>the editor has never been viewed</p></li></ul></div></p><p>then this method ignores the editor&rsquo;s maximum width and any automatic
 line breaks it might imply.  If the first two of the above conditions
 are true and the editor was <span style="font-style: italic">formerly</span> displayed, this method
 uses the line breaks from the most recent display of the
 editor. (Insertions or deletions since the display shift line breaks
 within the editor in the same way as <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s.)</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._move-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._move-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">move-position</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">code</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">extend?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">kind</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">code</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">home</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">end</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">right</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">left</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">up</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">down</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">extend?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">kind</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">simple</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">word</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">page</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">line</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">simple</span></td></tr></table></blockquote></div><div class="SIntrapara">Moves the current selection.</div></p><p>The possible values for <span class="RktVar">code</span> are:</p><ul><li><p><span class="RktVal">'</span><span class="RktVal">home</span> &#8212;<wbr></wbr> go to start of file</p></li><li><p><span class="RktVal">'</span><span class="RktVal">end</span> &#8212;<wbr></wbr> go to end of file</p></li><li><p><span class="RktVal">'</span><span class="RktVal">right</span> &#8212;<wbr></wbr> move right</p></li><li><p><span class="RktVal">'</span><span class="RktVal">left</span> &#8212;<wbr></wbr> move left</p></li><li><p><span class="RktVal">'</span><span class="RktVal">up</span> &#8212;<wbr></wbr> move up</p></li><li><p><span class="RktVal">'</span><span class="RktVal">down</span> &#8212;<wbr></wbr> move down</p></li></ul><p>If <span class="RktVar">extend?</span> is not <span class="RktVal">#f</span>, the selection range is
 extended instead of moved.  If anchoring is on (see <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-anchor%29%29" class="RktValLink" data-pltdoc="x">get-anchor</a></span> and <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-anchor%29%29" class="RktValLink" data-pltdoc="x">set-anchor</a></span>), then <span class="RktVar">extend?</span> is
 effectively forced to <span class="RktVal">#t</span>. See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-extend-start-position%29%29" class="RktValLink" data-pltdoc="x">get-extend-start-position</a></span>
 and <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-extend-end-position%29%29" class="RktValLink" data-pltdoc="x">get-extend-end-position</a></span>.</p><p>The possible values for <span class="RktVar">kind</span> are:</p><ul><li><p><span class="RktVal">'</span><span class="RktVal">simple</span> &#8212;<wbr></wbr> move one item or line</p></li><li><p><span class="RktVal">'</span><span class="RktVal">word</span> &#8212;<wbr></wbr> works with <span class="RktVal">'</span><span class="RktVal">right</span> or <span class="RktVal">'</span><span class="RktVal">left</span></p></li><li><p><span class="RktVal">'</span><span class="RktVal">page</span> &#8212;<wbr></wbr> works with <span class="RktVal">'</span><span class="RktVal">up</span> or <span class="RktVal">'</span><span class="RktVal">down</span></p></li><li><p><span class="RktVal">'</span><span class="RktVal">line</span> &#8212;<wbr></wbr> works with <span class="RktVal">'</span><span class="RktVal">right</span> or <span class="RktVal">'</span><span class="RktVal">left</span>; moves to the start or end of the line</p></li></ul><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-position%29%29" class="RktValLink" data-pltdoc="x">set-position</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._on-change-style))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-change-style%29%29" class="RktValDef RktValLink" data-pltdoc="x">on-change-style</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">len</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">len</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called before the style is changed in a given range of the editor,
 after <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-change-style~3f%29%29" class="RktValLink" data-pltdoc="x">can-change-style?</a></span> is called to verify that the
 change is ok. The <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-change-style%29%29" class="RktValLink" data-pltdoc="x">after-change-style</a></span> method is
 guaranteed to be called after the change has completed.</div></p><p>The editor is internally locked for writing during a call to this method
 (see also <a href="editor-overview.html#%28part._lockinfo%29" data-pltdoc="x">Internal Editor Locks</a>). Use
<span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-change-style%29%29" class="RktValLink" data-pltdoc="x">after-change-style</a></span> to modify the editor, if necessary.</p><p>See also <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">on-edit-sequence</a></span>.</p><p><span style="font-style: italic">Default implementation:</span> 
Does nothing.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._on-default-char))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-default-char%29%29" class="RktValDef RktValLink" data-pltdoc="x">on-default-char</a></span><span class="hspace">&nbsp;</span><span class="RktVar">event</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">event</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="key-event_.html" class="RktValLink" data-pltdoc="x">key-event%</a></span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Overrides <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-default-char%29%29" class="RktValLink" data-pltdoc="x">on-default-char</a></span> in <span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span>.</div><div class="SIntrapara">Handles the following:</div></p><ul><li><p>Delete and Backspace &#8212;<wbr></wbr> calls <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._delete%29%29" class="RktValLink" data-pltdoc="x">delete</a></span>.</p></li><li><p>The arrow keys, Page Up, Page Down, Home, and End (including
shifted versions) &#8212;<wbr></wbr> moves the selection <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> with
<span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._move-position%29%29" class="RktValLink" data-pltdoc="x">move-position</a></span>.</p></li><li><p>Any other character in the range <span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=characters.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._integer-%7E3echar%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">integer-&gt;char</a></span><span class="stt"> </span><span class="RktVal">32</span><span class="RktPn">)</span> to
<span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=characters.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._integer-%7E3echar%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">integer-&gt;char</a></span><span class="stt"> </span><span class="RktVal">255</span><span class="RktPn">)</span> &#8212;<wbr></wbr> inserts the character into the
editor.</p></li></ul><p>Note that an editor&rsquo;s <span class="RktSym"><a href="editor-canvas_.html" class="RktValLink" data-pltdoc="x">editor-canvas%</a></span> normally handles mouse
 wheel events (see also <span class="RktSym"><a href="editor-canvas_.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor-canvas~25%29._on-char%29%29" class="RktValLink" data-pltdoc="x">on-char</a></span> ).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._on-default-event))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-default-event%29%29" class="RktValDef RktValLink" data-pltdoc="x">on-default-event</a></span><span class="hspace">&nbsp;</span><span class="RktVar">event</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">event</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="mouse-event_.html" class="RktValLink" data-pltdoc="x">mouse-event%</a></span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Overrides <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-default-event%29%29" class="RktValLink" data-pltdoc="x">on-default-event</a></span> in <span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span>.</div><div class="SIntrapara">Tracks clicks on a clickback (see <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-clickback%29%29" class="RktValLink" data-pltdoc="x">set-clickback</a></span>) of
 changes the selection. Note that <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-event%29%29" class="RktValLink" data-pltdoc="x">on-event</a></span>
 dispatches to a caret-owning snip and detects a click on an
 event-handling snip before calling to this method.</div></p><ul><li><p>Clicking on a clickback region starts clickback tracking. See
<span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-clickback%29%29" class="RktValLink" data-pltdoc="x">set-clickback</a></span> for more information. Moving over a
clickback changes the shape of the mouse cursor.</p></li><li><p>Clicking anywhere else moves the caret to the closest <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>
between <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s. Shift-clicking extends the current selection.</p></li><li><p>Dragging extends the selection, scrolling if possible when the
selection is dragged outside the editor&rsquo;s visible region.</p></li></ul><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._on-delete))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-delete%29%29" class="RktValDef RktValLink" data-pltdoc="x">on-delete</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">len</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">len</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called before a range is deleted from the editor, after <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-delete~3f%29%29" class="RktValLink" data-pltdoc="x">can-delete?</a></span> is called to verify that the deletion is ok. The
 <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-delete%29%29" class="RktValLink" data-pltdoc="x">after-delete</a></span> method is guaranteed to be called after
 the delete has completed.</div></p><p>The <span class="RktVar">start</span> argument specifies the starting <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>
 of the range to delete. The <span class="RktVar">len</span> argument specifies number of
 <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s to delete (so <span class="RktVar">start</span><span style="font-style: italic">+</span><span class="RktVar">len</span> is
 the ending <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of the range to delete).</p><p>The editor is internally locked for writing during a call to this
 method (see also <a href="editor-overview.html#%28part._lockinfo%29" data-pltdoc="x">Internal Editor Locks</a>). Use <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-delete%29%29" class="RktValLink" data-pltdoc="x">after-delete</a></span> to
 modify the editor, if necessary.</p><p>See also <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">on-edit-sequence</a></span>.</p><p><span style="font-style: italic">Default implementation:</span> 
Does nothing.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._on-insert))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-insert%29%29" class="RktValDef RktValLink" data-pltdoc="x">on-insert</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">len</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">len</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called before <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s are inserted into the editor, after
 <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-insert~3f%29%29" class="RktValLink" data-pltdoc="x">can-insert?</a></span> is called to verify that the insertion is
 ok. The <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-insert%29%29" class="RktValLink" data-pltdoc="x">after-insert</a></span> method is guaranteed to be called
 after the insert has completed.</div></p><p>The <span class="RktVar">start</span> argument specifies the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of the insert. The
 <span class="RktVar">len</span> argument specifies the total length (in <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>s) of the
 <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s to be inserted.</p><p>The editor is internally locked for writing during a call to this
 method (see also <a href="editor-overview.html#%28part._lockinfo%29" data-pltdoc="x">Internal Editor Locks</a>). Use <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-insert%29%29" class="RktValLink" data-pltdoc="x">after-insert</a></span> to
 modify the editor, if necessary.</p><p>See also <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">on-edit-sequence</a></span>.</p><p><span style="font-style: italic">Default implementation:</span> 
Does nothing.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._on-new-string-snip))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-new-string-snip%29%29" class="RktValDef RktValLink" data-pltdoc="x">on-new-string-snip</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="string-snip_.html" class="RktValLink" data-pltdoc="x">string-snip%</a></span><span class="RktPn">)</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called by <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._insert%29%29" class="RktValLink" data-pltdoc="x">insert</a></span> when a string or character is inserted
into the editor, this method creates and returns a new instance of
<span class="RktSym"><a href="string-snip_.html" class="RktValLink" data-pltdoc="x">string-snip%</a></span> to store inserted text. The returned string snip
is empty (i.e., its <a href="editor-overview.html#%28tech._count%29" data-pltdoc="x">count</a> is zero).</div></p><p><span style="font-style: italic">Default implementation:</span> 
Returns a <span class="RktSym"><a href="string-snip_.html" class="RktValLink" data-pltdoc="x">string-snip%</a></span> instance.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._on-new-tab-snip))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-new-tab-snip%29%29" class="RktValDef RktValLink" data-pltdoc="x">on-new-tab-snip</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="tab-snip_.html" class="RktValLink" data-pltdoc="x">tab-snip%</a></span><span class="RktPn">)</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Creates and returns a new instance of <span class="RktSym"><a href="tab-snip_.html" class="RktValLink" data-pltdoc="x">tab-snip%</a></span> to store an
 inserted tab. The returned tab snip is empty (i.e., its <a href="editor-overview.html#%28tech._count%29" data-pltdoc="x">count</a>
 is zero).</div></p><p><span style="font-style: italic">Default implementation:</span> 
Returns a <span class="RktSym"><a href="tab-snip_.html" class="RktValLink" data-pltdoc="x">tab-snip%</a></span> instance.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._on-reflow))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-reflow%29%29" class="RktValDef RktValLink" data-pltdoc="x">on-reflow</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> Called after <a href="editor-overview.html#%28tech._location%29" class="techoutside" data-pltdoc="x"><span class="techinside">locations</span></a> have changed and are recomputed for the editor.
<span style="font-style: italic">Default implementation:</span> 
Does nothing.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._on-set-size-constraint))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._on-set-size-constraint%29%29" class="RktValDef RktValLink" data-pltdoc="x">on-set-size-constraint</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Refine this method with <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=createclass.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._augment%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">augment</a></span>.</div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Called before the editor&rsquo;s maximum or minimum height or width is
 changed, after <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._can-set-size-constraint~3f%29%29" class="RktValLink" data-pltdoc="x">can-set-size-constraint?</a></span> is called to
 verify that the change is ok. The <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._after-set-size-constraint%29%29" class="RktValLink" data-pltdoc="x">after-set-size-constraint</a></span> method is guaranteed to be called after
 the change has completed.</div></p><p>(This callback method is provided because setting an editor&rsquo;s maximum
 width may cause lines to be re-flowed with soft newlines.)</p><p>See also <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-edit-sequence%29%29" class="RktValLink" data-pltdoc="x">on-edit-sequence</a></span>.</p><p><span style="font-style: italic">Default implementation:</span> 
Does nothing.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._paragraph-end-line))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paragraph-end-line%29%29" class="RktValDef RktValLink" data-pltdoc="x">paragraph-end-line</a></span><span class="hspace">&nbsp;</span><span class="RktVar">paragraph</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">paragraph</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the ending line of a given paragraph. Paragraphs are numbered starting with <span class="RktVal">0</span>. Lines are numbered starting with <span class="RktVal">0</span>.</div></p><p>Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information if a maximum width is set for the editor, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>). If the editor is not displayed and the editor has a
maximum width, line breaks are calculated as for
<span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-start-position%29%29" class="RktValLink" data-pltdoc="x">line-start-position</a></span> (which handles specially
the case of no display when the editor has a maximum width).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._paragraph-end-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paragraph-end-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">paragraph-end-position</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">paragraph</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">visible?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">paragraph</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">visible?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the ending <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of a given paragraph. Paragraphs are numbered starting with <span class="RktVal">0</span>.</div></p><p>If there are fewer than <span class="RktVar">paragraph</span><span style="font-style: italic">-</span>1<span style="font-style: italic"></span> paragraphs, the
 end of the last paragraph is returned. If <span class="RktVar">paragraph</span> is less
 than 0, then the end of the first paragraph is returned.</p><p>If the paragraph ends with <a href="snip_.html#%28tech._invisible%29" class="techoutside" data-pltdoc="x"><span class="techinside">invisible</span></a> <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s (such as a newline)
 and <span class="RktVar">visible?</span> is not <span class="RktVal">#f</span>, the first <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>
 before the <a href="snip_.html#%28tech._invisible%29" class="techoutside" data-pltdoc="x"><span class="techinside">invisible</span></a> <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s is returned.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._paragraph-start-line))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paragraph-start-line%29%29" class="RktValDef RktValLink" data-pltdoc="x">paragraph-start-line</a></span><span class="hspace">&nbsp;</span><span class="RktVar">paragraph</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">paragraph</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the starting line of a given paragraph. If <span class="RktVar">paragraph</span>
is greater than the highest-numbered paragraph, then the editor&rsquo;s end
<a href="editor-overview.html#%28tech._position%29" class="techoutside" data-pltdoc="x"><span class="techinside">position</span></a> is returned. Paragraphs are numbered starting with <span class="RktVal">0</span>. Lines are numbered starting with <span class="RktVal">0</span>.</div></p><p>Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information if a maximum width is set for the editor, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>). If the editor is not displayed and the editor has a
maximum width, line breaks are calculated as for
<span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-start-position%29%29" class="RktValLink" data-pltdoc="x">line-start-position</a></span> (which handles specially
the case of no display when the editor has a maximum width).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._paragraph-start-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paragraph-start-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">paragraph-start-position</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">paragraph</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">visible?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">paragraph</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">visible?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the starting <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> of a given paragraph. Paragraphs are numbered starting with <span class="RktVal">0</span>.</div></p><p>If there are fewer than <span class="RktVar">paragraph</span><span style="font-style: italic">-</span>1<span style="font-style: italic"></span> paragraphs, the
 start of the last paragraph is returned.</p><p>If the paragraph starts with <a href="snip_.html#%28tech._invisible%29" class="techoutside" data-pltdoc="x"><span class="techinside">invisible</span></a> <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s and <span class="RktVar">visible?</span> is
 not <span class="RktVal">#f</span>, the first <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> past the <a href="snip_.html#%28tech._invisible%29" class="techoutside" data-pltdoc="x"><span class="techinside">invisible</span></a> <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s is
 returned.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._paste))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paste%29%29" class="RktValDef RktValLink" data-pltdoc="x">paste</a></span><span class="hspace">&nbsp;</span>[<span class="RktVar">time</span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">end</span>]<span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">time</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-integer?</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">end</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span></td></tr></table></blockquote></div><div class="SIntrapara">Overrides <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._paste%29%29" class="RktValLink" data-pltdoc="x">paste</a></span> in <span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span>.</div><div class="SIntrapara">Pastes into the specified range. If <span class="RktVar">start</span> is <span class="RktVal">'</span><span class="RktVal">start</span>,
 then the current selection start <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is used. If
 <span class="RktVar">start</span> is <span class="RktVal">'</span><span class="RktVal">end</span>, then the current selection end
 <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is used. If <span class="RktVar">end</span> is <span class="RktVal">'</span><span class="RktVal">same</span>, then
 <span class="RktVar">start</span> is used for <span class="RktVar">end</span>, unless <span class="RktVar">start</span> is
 <span class="RktVal">'</span><span class="RktVal">start</span>, in which case the current selection end
 <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is used.</div></p><p>See <a href="editor-overview.html#%28part._editorcutandpastetime%29" data-pltdoc="x">Cut and Paste Time Stamps</a> for a discussion of the <span class="RktVar">time</span> argument. If
 <span class="RktVar">time</span> is outside the platform-specific range of times,
 an <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=exns.html%23%2528def._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._exn%7E3afail%7E3acontract%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exn:fail:contract</a></span> exception is raised.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._paste-next))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paste-next%29%29" class="RktValDef RktValLink" data-pltdoc="x">paste-next</a></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Editors collectively maintain a copy ring that holds up to 30 previous
 copies (and cuts) among the editors. When it is called as the next
 method on an editor after a paste, the <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paste-next%29%29" class="RktValLink" data-pltdoc="x">paste-next</a></span>
 method replaces the text from a previous paste with the next data in
 the copy ring, incrementing the ring pointer so that the next
 <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paste-next%29%29" class="RktValLink" data-pltdoc="x">paste-next</a></span> pastes in even older data.</div></p><p>It is a copy &ldquo;ring&rdquo; because the ring pointer wraps back to the most
 recent copied data after the oldest remembered data is pasted. Any
 cut, copy, or (regular) paste operation resets the copy ring pointer
 back to the beginning.</p><p>If the previous operation on the editor was not a paste, calling
 <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paste-next%29%29" class="RktValLink" data-pltdoc="x">paste-next</a></span> has no effect.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._paste-x-selection))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paste-x-selection%29%29" class="RktValDef RktValLink" data-pltdoc="x">paste-x-selection</a></span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">time</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">time</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-integer?</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">end</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span></td></tr></table></blockquote></div><div class="SIntrapara">Overrides <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._paste-x-selection%29%29" class="RktValLink" data-pltdoc="x">paste-x-selection</a></span> in <span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span>.</div><div class="SIntrapara">Pastes into the specified range. If <span class="RktVar">start</span> is <span class="RktVal">'</span><span class="RktVal">start</span>,
 then the current selection start <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is used. If
 <span class="RktVar">start</span> is <span class="RktVal">'</span><span class="RktVal">end</span>, then the current selection end
 <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is used. If <span class="RktVar">end</span> is <span class="RktVal">'</span><span class="RktVal">same</span>, then
 <span class="RktVar">start</span> is used for <span class="RktVar">end</span>, unless <span class="RktVar">start</span> is
 <span class="RktVal">'</span><span class="RktVal">start</span>, in which case the current selection end
 <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is used.</div></p><p>See <a href="editor-overview.html#%28part._editorcutandpastetime%29" data-pltdoc="x">Cut and Paste Time Stamps</a> for a discussion of the <span class="RktVar">time</span> argument. If
 <span class="RktVar">time</span> is outside the platform-specific range of times,
 an <span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=exns.html%23%2528def._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._exn%7E3afail%7E3acontract%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exn:fail:contract</a></span> exception is raised.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._position-line))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._position-line%29%29" class="RktValDef RktValLink" data-pltdoc="x">position-line</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>[<span class="RktVar">at-eol?</span>]<span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">at-eol?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the line number of the line containing a given <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>. Lines are numbered starting with <span class="RktVal">0</span>.</div></p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._paragraph-start-position%29%29" class="RktValLink" data-pltdoc="x">paragraph-start-position</a></span>, which
operates on paragraphs (determined by explicit newline characters)
instead of lines (determined by both explicit newline
characters and automatic line-wrapping).</p><p>See <a href="editor-overview.html#%28part._editoreol%29" data-pltdoc="x">End of Line Ambiguity</a> for a discussion of <span class="RktVar">at-eol?</span>.</p><p>Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information if a maximum width is set for the editor, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>). If the editor is not displayed and the editor has a
maximum width, line breaks are calculated as for
<span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._line-start-position%29%29" class="RktValLink" data-pltdoc="x">line-start-position</a></span> (which handles specially
the case of no display when the editor has a maximum width).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._position-location))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._position-location%29%29" class="RktValDef RktValLink" data-pltdoc="x">position-location</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">x</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">y</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">top?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">at-eol?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">whole-line?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">x</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">y</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">top?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">at-eol?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">whole-line?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">Returns the <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> of a given <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>. See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._position-locations%29%29" class="RktValLink" data-pltdoc="x">position-locations</a></span>.</div></p><p>The <span class="RktVar">x</span> box is filled with the x-<a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> of the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> <span class="RktVar">start</span> in editor
coordinates, unless <span class="RktVar">x</span> is <span class="RktVal">#f</span>.
The <span class="RktVar">y</span> box is filled with the y-<a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> (top or bottom; see below) of the
<a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> <span class="RktVar">start</span> in editor coordinates, unless <span class="RktVar">y</span> is <span class="RktVal">#f</span>.</p><p>See <a href="editor-overview.html#%28part._editoreol%29" data-pltdoc="x">End of Line Ambiguity</a> for a discussion of <span class="RktVar">at-eol?</span>.</p><p>If <span class="RktVar">top?</span> is not <span class="RktVal">#f</span>, the top coordinate of the <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
is returned, otherwise the bottom coordinate of the
<a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> is returned.</p><p>The top <span class="RktVar">y</span> <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> may be different for different <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>s
within a line when different-sized graphic objects are used. If
<span class="RktVar">whole-line?</span> is not <span class="RktVal">#f</span>, the minimum top <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> or
maximum bottom <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a> for the whole line is returned in <span class="RktVar">y</span>.</p><p>The result is only valid when the editor is displayed
(see <a href="editor-overview.html#%28part._tb~3amiaoverview%29" data-pltdoc="x">Editor Structure and Terminology</a>). Editors are displayed when
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-admin%29%29" class="RktValLink" data-pltdoc="x">get-admin</a></span> returns an administrator (not <span class="RktVal">#f</span>). Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._position-locations))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._position-locations%29%29" class="RktValDef RktValLink" data-pltdoc="x">position-locations</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">top-x</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">top-y</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">bottom-x</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">bottom-y</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">at-eol?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">whole-line?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">top-x</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">top-y</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">bottom-x</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">bottom-y</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">at-eol?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">whole-line?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">Like <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._position-location%29%29" class="RktValLink" data-pltdoc="x">position-location</a></span>, but returns both the &ldquo;top&rdquo;
and &ldquo;bottom&rdquo; results at once.</div></p><p>The result is only valid when the editor is displayed
(see <a href="editor-overview.html#%28part._tb~3amiaoverview%29" data-pltdoc="x">Editor Structure and Terminology</a>). Editors are displayed when
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-admin%29%29" class="RktValLink" data-pltdoc="x">get-admin</a></span> returns an administrator (not <span class="RktVal">#f</span>). Calling this method may force the recalculation of <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information, even if the editor currently has delayed
refreshing (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._position-paragraph))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._position-paragraph%29%29" class="RktValDef RktValLink" data-pltdoc="x">position-paragraph</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">at-eol?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">at-eol?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">See <a href="editor-overview.html#%28part._editoreol%29" data-pltdoc="x">End of Line Ambiguity</a> for a discussion of <span class="RktVar">at-eol?</span>.</div></p><p>Returns the paragraph number of the paragraph containing a given <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._read-from-file))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._read-from-file%29%29" class="RktValDef RktValLink" data-pltdoc="x">read-from-file</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">stream</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">overwrite-styles?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">stream</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="editor-stream-in_.html" class="RktValLink" data-pltdoc="x">editor-stream-in%</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">overwrite-styles?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="prototype"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._read-from-file%29%29" class="RktValDef RktValLink" data-pltdoc="x">read-from-file</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">stream</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">overwrite-styles?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></td></tr></table></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">stream</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="editor-stream-in_.html" class="RktValLink" data-pltdoc="x">editor-stream-in%</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">overwrite-styles?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">Extends <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._read-from-file%29%29" class="RktValLink" data-pltdoc="x">read-from-file</a></span> in <span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span>.</div><div class="SIntrapara">New data is inserted at the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> indicated by <span class="RktVar">start</span>, or at
 the current <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> if <span class="RktVar">start</span> is <span class="RktVal">'</span><span class="RktVal">start</span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._remove-clickback))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._remove-clickback%29%29" class="RktValDef RktValLink" data-pltdoc="x">remove-clickback</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">end</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Removes all clickbacks installed for exactly the range <span class="RktVar">start</span>
 to <span class="RktVar">end</span>. See also <a href="editor-overview.html#%28part._editorclickback%29" data-pltdoc="x">Clickbacks</a>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._scroll-to-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._scroll-to-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">scroll-to-position</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">at-eol?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">bias</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">at-eol?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">bias</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">end</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">none</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">none</span></td></tr></table></blockquote></div><div class="SIntrapara">Scrolls the editor so that a given <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is visible.</div></p><p>If <span class="RktVar">end</span> is <span class="RktVal">'</span><span class="RktVal">same</span> or equal to <span class="RktVar">start</span>, then <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>
 <span class="RktVar">start</span> is made visible.  See <a href="editor-overview.html#%28part._editoreol%29" data-pltdoc="x">End of Line Ambiguity</a> for a discussion of
 <span class="RktVar">at-eol?</span>.</p><p>If <span class="RktVar">end</span> is not <span class="RktVal">'</span><span class="RktVal">same</span> and not the same as <span class="RktVar">start</span>,
 then the range <span class="RktVar">start</span> to <span class="RktVar">end</span> is made visible and
 <span class="RktVar">at-eol?</span> is ignored.</p><p>When the specified range cannot fit in the visible area, <span class="RktVar">bias</span>
 indicates which end of the range to display. When <span class="RktVar">bias</span> is
 <span class="RktVal">'</span><span class="RktVal">start</span>, then the start of the range is displayed. When
 <span class="RktVar">bias</span> is <span class="RktVal">'</span><span class="RktVal">end</span>, then the end of the range is
 displayed. Otherwise, <span class="RktVar">bias</span> must be <span class="RktVal">'</span><span class="RktVal">none</span>.</p><p>If the editor is scrolled, then the editor is redrawn and the return
 value is <span class="RktVal">#t</span>; otherwise, the return value is <span class="RktVal">#f</span>.  If
 refreshing is delayed (see <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._refresh-delayed~3f%29%29" class="RktValLink" data-pltdoc="x">refresh-delayed?</a></span>), then
 the scroll request is saved until the delay has ended. The scroll is
 performed (immediately or later) by calling <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._scroll-editor-to%29%29" class="RktValLink" data-pltdoc="x">scroll-editor-to</a></span>.</p><p>Scrolling is disallowed when the editor is internally locked for
 reflowing (see also <a href="editor-overview.html#%28part._lockinfo%29" data-pltdoc="x">Internal Editor Locks</a>).</p><p>The system may scroll the editor without calling this method. For
 example, a canvas displaying an editor might scroll the editor to
 handle a scrollbar event.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-anchor))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-anchor%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-anchor</a></span><span class="hspace">&nbsp;</span><span class="RktVar">on?</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">on?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Turns anchoring on or off. This method can be overridden to affect or
 detect changes in the anchor state. See also
 <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-anchor%29%29" class="RktValLink" data-pltdoc="x">get-anchor</a></span>.</div></p><p>If <span class="RktVar">on?</span> is not <span class="RktVal">#f</span>, then the selection will be
 automatically extended when cursor keys are used (or, more generally,
 when <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._move-position%29%29" class="RktValLink" data-pltdoc="x">move-position</a></span> is used to move the selection or the
 <span class="RktVar">keep-anchor?</span> argument to <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-position%29%29" class="RktValLink" data-pltdoc="x">set-position</a></span> is a true value),
 otherwise anchoring is turned off. Anchoring is automatically turned
 off if the user does anything besides cursor movements.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-autowrap-bitmap))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-autowrap-bitmap%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-autowrap-bitmap</a></span><span class="hspace">&nbsp;</span><span class="RktVar">bitmap</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=draw&amp;rel=bitmap_.html&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">bitmap%</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">bitmap</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=draw&amp;rel=bitmap_.html&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">bitmap%</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Sets the bitmap that is drawn at the end of a line when it is
 automatically line-wrapped.</div></p><p>If <span class="RktVar">bitmap</span> is <span class="RktVal">#f</span>, no autowrap indicator is drawn
 (this is the default). The previously used bitmap (possibly
 <span class="RktVal">#f</span>) is returned.</p><p>Setting the bitmap is disallowed when the editor is internally locked
 for reflowing (see also <a href="editor-overview.html#%28part._lockinfo%29" data-pltdoc="x">Internal Editor Locks</a>).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-between-threshold))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-between-threshold%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-between-threshold</a></span><span class="hspace">&nbsp;</span><span class="RktVar">threshold</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">threshold</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Sets the graphical distance used to determine the meaning of a user
 click. If a click falls within <span class="RktVar">threshold</span> of a position
 between two <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s, then the click registers on the space
 between the <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s rather than on either <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>.</div></p><p>See also
<span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-between-threshold%29%29" class="RktValLink" data-pltdoc="x">get-between-threshold</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-clickback))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-clickback%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-clickback</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">f</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">hilite-delta</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">call-on-down?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td valign="top"><span class="hspace">&nbsp;&nbsp;</span></td><td valign="top"><span class="RktVar">f</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">:</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=function-contracts.html%23%2528form._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._-%7E3e%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x"><span class="nobreak">-&gt;</span></a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="" class="RktValLink" data-pltdoc="x">text%</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528form._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">any</a></span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">hilite-delta</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="style-delta_.html" class="RktValLink" data-pltdoc="x">style-delta%</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">call-on-down?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr></table></blockquote></div><div class="SIntrapara">Installs a clickback for a given region. If a clickback is already
 installed for an overlapping region, this clickback takes precedence.</div></p><p>The callback procedure <span class="RktVar">f</span> is called when the user selects the
 clickback. The arguments to <span class="RktVar">f</span> are this editor and the starting
 and ending range of the clickback.</p><p>The <span class="RktVar">hilite-delta</span> style delta is applied to the clickback text
 when the user has clicked and is still holding the mouse over the
 clickback. If <span class="RktVar">hilite-delta</span> is <span class="RktVal">#f</span>, then the clickback
 region&rsquo;s style is not changed when it is being selected.</p><p>If <span class="RktVar">call-on-down?</span> is not <span class="RktVal">#f</span>, the clickback is called
 immediately when the user clicks the mouse button down, instead of
 after a mouse-up event. The <span class="RktVar">hilite-delta</span> argument is not used
 in this case.</p><p>See also <a href="editor-overview.html#%28part._editorclickback%29" data-pltdoc="x">Clickbacks</a>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-file-format))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-file-format%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-file-format</a></span><span class="hspace">&nbsp;</span><span class="RktVar">format</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">format</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">standard</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">text</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">text-force-cr</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Set the format of the file saved from this editor.</div></p><p>The legal formats are:</p><ul><li><p><span class="RktVal">'</span><span class="RktVal">standard</span> &#8212;<wbr></wbr>  a standard editor  file</p></li><li><p><span class="RktVal">'</span><span class="RktVal">text</span> &#8212;<wbr></wbr> a text file</p></li><li><p><span class="RktVal">'</span><span class="RktVal">text-force-cr</span> &#8212;<wbr></wbr> a text file; when writing, change
automatic newlines (from word-wrapping) into real newlines</p></li></ul><p>The file format of an editor can be changed
by the
system in response to file loading and saving
method calls, and such changes do not go through this method; use <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-load-file%29%29" class="RktValLink" data-pltdoc="x">on-load-file</a></span> and
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._on-save-file%29%29" class="RktValLink" data-pltdoc="x">on-save-file</a></span> to
monitor such file format changes.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-line-spacing))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-line-spacing%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-line-spacing</a></span><span class="hspace">&nbsp;</span><span class="RktVar">space</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">space</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Sets the spacing inserted by the editor between each line. This
 spacing is included in the reported height of each line.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-overwrite-mode))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-overwrite-mode%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-overwrite-mode</a></span><span class="hspace">&nbsp;</span><span class="RktVar">on?</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">on?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Enables or disables overwrite mode. See <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-overwrite-mode%29%29" class="RktValLink" data-pltdoc="x">get-overwrite-mode</a></span>. This method can be overridden to affect or
 detect changes in the overwrite mode.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-padding))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-padding%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-padding</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">left</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">top</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">right</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">bottom</span><span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">left</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">top</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">right</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">bottom</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Sets padding that insets the editor&rsquo;s content when drawn within its
<a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a>.</div></p><p>Unlike any margin that may be applied by the editor&rsquo;s
<a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a>, padding is counted in <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>
information that is reported by methods such as <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._position-location%29%29" class="RktValLink" data-pltdoc="x">position-location</a></span>. For example, with a <span class="RktVar">left</span> padding of 17.0
and a <span class="RktVar">top</span> padding of 9.0, the location of position 0 will be
(17.0, 9.0) rather than (0, 0). Padding also contributes to the
editor&rsquo;s size as reported by <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-extent%29%29" class="RktValLink" data-pltdoc="x">get-extent</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-paragraph-alignment))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-paragraph-alignment%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-paragraph-alignment</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">paragraph</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">alignment</span><span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">paragraph</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">alignment</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">left</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">center</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">right</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Sets a paragraph-specific horizontal alignment. The alignment is only
 used when the editor has a maximum width, as set with
 <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._set-max-width%29%29" class="RktValLink" data-pltdoc="x">set-max-width</a></span>. Paragraphs are numbered starting with <span class="RktVal">0</span>.</div></p><p><span style="font-style: italic">This method is experimental.</span> It works reliably only when the
 paragraph is not merged or split. Merging or splitting a paragraph
 with alignment settings causes the settings to be transferred
 unpredictably (although other paragraphs in the editor can be safely
 split or merged). If the last paragraph in an editor is empty,
 settings assigned to it are ignored.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-paragraph-margins))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-paragraph-margins%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-paragraph-margins</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">paragraph</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">first-left</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">left</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">right</span><span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">paragraph</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">first-left</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">left</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">right</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._and%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">and/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._not%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">not/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._negative%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">negative?</a></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Sets a paragraph-specific margin. Paragraphs are numbered starting with <span class="RktVal">0</span>.</div></p><p>The first line of the paragraph is indented by <span class="RktVar">first-left</span> points
 within the editor. If the paragraph is line-wrapped (when the editor
 has a maximum width), subsequent lines are indented by <span class="RktVar">left</span>
 points.  If the editor has a maximum width, the paragraph&rsquo;s maximum
 width for line-wrapping is <span class="RktVar">right</span> points smaller than the
 editor&rsquo;s maximum width.</p><p><span style="font-style: italic">This method is experimental.</span> See <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-paragraph-alignment%29%29" class="RktValLink" data-pltdoc="x">set-paragraph-alignment</a></span> for more information.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-position))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-position%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-position</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">at-eol?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">scroll?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">seltype</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">at-eol?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">scroll?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">seltype</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">default</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">x</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">local</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">default</span></td></tr></table></blockquote></div><div class="SIntrapara">Sets the current selection in the editor.</div></p><p>If <span class="RktVar">end</span> is <span class="RktVal">'</span><span class="RktVal">same</span> or less than or equal to <span class="RktVar">start</span>,
 the current start and end <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>s are both set to
 <span class="RktVar">start</span>. Otherwise the given range is selected.</p><p>See <a href="editor-overview.html#%28part._editoreol%29" data-pltdoc="x">End of Line Ambiguity</a> for a discussion of <span class="RktVar">at-eol?</span>. If
 <span class="RktVar">scroll?</span>  is not <span class="RktVal">#f</span>, then the <a href="editor-overview.html#%28tech._display%29" data-pltdoc="x">display</a> is
 scrolled to show the selection if necessary.</p><p><div class="SIntrapara">The <span class="RktVar">seltype</span> argument is only used when the X Window System
 selection mechanism is enabled. The possible values are:
</div><div class="SIntrapara"><ul><li><p><span class="RktVal">'</span><span class="RktVal">default</span> &#8212;<wbr></wbr> if this window has the keyboard focus
and given selection is non-empty, make it the current X selection</p></li><li><p><span class="RktVal">'</span><span class="RktVal">x</span> &#8212;<wbr></wbr> if the given selection is non-empty, make
it the current X selection</p></li><li><p><span class="RktVal">'</span><span class="RktVal">local</span> &#8212;<wbr></wbr> do not change the
current X selection</p></li></ul></div></p><p>Setting the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is disallowed when the editor is internally
 locked for reflowing (see also <a href="editor-overview.html#%28part._lockinfo%29" data-pltdoc="x">Internal Editor Locks</a>).</p><p>The system may change the selection in an editor without calling this
 method (or any visible method).</p><p>See also <span class="RktSym"><a href="Editor_Functions.html#%28def._%28%28lib._mred%2Fmain..rkt%29._editor-set-x-selection-mode%29%29" class="RktValLink" data-pltdoc="x">editor-set-x-selection-mode</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-position-bias-scroll))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-position-bias-scroll%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-position-bias-scroll</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">bias</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">start</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">end</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">ateol?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">scroll?</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">seltype</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">bias</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start-only</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">start</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">none</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">end</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">end-only</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">same</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">ateol?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#f</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">scroll?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">seltype</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">default</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">x</span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">local</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">default</span></td></tr></table></blockquote></div><div class="SIntrapara">Like  <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-position%29%29" class="RktValLink" data-pltdoc="x">set-position</a></span>, but a scrolling bias can be specified.</div></p><p><div class="SIntrapara">The possible values for <span class="RktVar">bias</span> are:
</div><div class="SIntrapara"><ul><li><p><span class="RktVal">'</span><span class="RktVal">start-only</span> &#8212;<wbr></wbr> only insure that the starting <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is visible</p></li><li><p><span class="RktVal">'</span><span class="RktVal">start</span> &#8212;<wbr></wbr> if the range doesn&rsquo;t fit in the visible area, show the starting <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a></p></li><li><p><span class="RktVal">'</span><span class="RktVal">none</span> &#8212;<wbr></wbr> no special scrolling instructions</p></li><li><p><span class="RktVal">'</span><span class="RktVal">end</span> &#8212;<wbr></wbr> if the range doesn&rsquo;t fit in the visible area, show the ending <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a></p></li><li><p><span class="RktVal">'</span><span class="RktVal">end-only</span> &#8212;<wbr></wbr> only insure that the ending <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is visible</p></li></ul></div></p><p>See also <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._scroll-to-position%29%29" class="RktValLink" data-pltdoc="x">scroll-to-position</a></span>.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-region-data))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-region-data%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-region-data</a></span><span class="hspace">&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span><span class="RktVar">data</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">data</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="editor-data_.html" class="RktValLink" data-pltdoc="x">editor-data%</a></span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara"><span style="font-style: italic">Specification:</span> 
Sets extra data associated with a given region. See
 <a href="editor-overview.html#%28part._editordata%29" data-pltdoc="x">Editor Data</a> and <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-region-data%29%29" class="RktValLink" data-pltdoc="x">get-region-data</a></span> for more
 information.</div></p><p>This method is meant to be overridden in combination with
 <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-region-data%29%29" class="RktValLink" data-pltdoc="x">get-region-data</a></span> .</p><p><span style="font-style: italic">Default implementation:</span> 
Does nothing.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-styles-sticky))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-styles-sticky%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-styles-sticky</a></span><span class="hspace">&nbsp;</span><span class="RktVar">sticky?</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">sticky?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span></td></tr></table></blockquote></div><div class="SIntrapara">See <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._get-styles-sticky%29%29" class="RktValLink" data-pltdoc="x">get-styles-sticky</a></span> for information about sticky
 styles.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><table cellspacing="0" cellpadding="0" class="prototype RForeground"><tr><td valign="top"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-tabs))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-tabs%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-tabs</a></span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">tabs</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span>[</td><td valign="top"><span class="RktVar">tab-width</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td></tr><tr><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktVar">in-units?</span>]<span class="RktPn">)</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">&rarr;</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></td></tr></table></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">tabs</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._listof%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">tab-width</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._real%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">real?</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">20</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">in-units?</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">#t</span></td></tr></table></blockquote></div><div class="SIntrapara">Sets the tabbing array for the editor.</div></p><p>The <span class="RktVar">tabs</span> list determines the tabbing array. The tabbing array
 specifies the x-<a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>s where each tab occurs. Tabs beyond the last
 specified tab are separated by a fixed amount <span class="RktVar">tab-width</span>.  If
 <span class="RktVar">in-units?</span> is not <span class="RktVal">#f</span>, then tabs are specified in canvas
 units; otherwise, they are specified as a number of spaces. (If tabs
 are specified in spaces, then the graphic tab positions will change
 with the font used for the tab.)</p><p>Setting tabs is disallowed when the editor is internally locked for
 reflowing (see also <a href="editor-overview.html#%28part._lockinfo%29" data-pltdoc="x">Internal Editor Locks</a>).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-wordbreak-func))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-wordbreak-func%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-wordbreak-func</a></span><span class="hspace">&nbsp;</span><span class="RktVar">f</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="argcontract"><tr><td valign="top"><span class="hspace">&nbsp;&nbsp;</span></td><td valign="top"><span class="RktVar">f</span></td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top">:</td><td valign="top"><span class="hspace">&nbsp;</span></td><td valign="top"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="" class="RktValLink" data-pltdoc="x">text%</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fbox..rkt%2529._box%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">box/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=symbols.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._symbol%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">symbol?</a></span></td></tr><tr><td><span class="hspace">&nbsp;</span><span class="RktPn">. </span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=function-contracts.html%23%2528form._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._-%7E3e%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x"><span class="nobreak">-&gt;</span></a></span><span class="RktPn"> .</span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528form._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">any</a></span><span class="RktPn">)</span></td></tr></table></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">Sets the word-breaking function for the editor.  For information about
 the arguments to the word-breaking function, see <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._find-wordbreak%29%29" class="RktValLink" data-pltdoc="x">find-wordbreak</a></span>.</div></p><p>The standard wordbreaking function uses the editor&rsquo;s
 <span class="RktSym"><a href="editor-wordbreak-map_.html" class="RktValLink" data-pltdoc="x">editor-wordbreak-map%</a></span> object to determine which characters
 break a word. See also <span class="RktSym"><a href="editor-wordbreak-map_.html" class="RktValLink" data-pltdoc="x">editor-wordbreak-map%</a></span> and
 <span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-wordbreak-map%29%29" class="RktValLink" data-pltdoc="x">set-wordbreak-map</a></span>.</p><p>Since the wordbreak function will be called when line breaks are being
 determined (in an editor that has a maximum width), there is a
 constrained set of <span class="RktSym"><a href="" class="RktValLink" data-pltdoc="x">text%</a></span> methods that the wordbreak
 function is allowed to invoke. It cannot invoke a member function
 that uses information about <a href="editor-overview.html#%28tech._location%29" data-pltdoc="x">location</a>s or lines (which are
 identified in this manual with &ldquo;The result is only valid when the editor is displayed
(see <a href="editor-overview.html#%28part._tb~3amiaoverview%29" data-pltdoc="x">Editor Structure and Terminology</a>). Editors are displayed when
<span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._get-admin%29%29" class="RktValLink" data-pltdoc="x">get-admin</a></span> returns an administrator (not <span class="RktVal">#f</span>).&rdquo;), but it can still invoke
 member functions that work with snips and <a href="editor-overview.html#%28tech._item%29" data-pltdoc="x">item</a>s.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._set-wordbreak-map))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._set-wordbreak-map%29%29" class="RktValDef RktValLink" data-pltdoc="x">set-wordbreak-map</a></span><span class="hspace">&nbsp;</span><span class="RktVar">map</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">map</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="editor-wordbreak-map_.html" class="RktValLink" data-pltdoc="x">editor-wordbreak-map%</a></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Sets the wordbreaking map that is used by the standard wordbreaking
 function. See <span class="RktSym"><a href="editor-wordbreak-map_.html" class="RktValLink" data-pltdoc="x">editor-wordbreak-map%</a></span> for more information.</div></p><p>If <span class="RktVar">map</span> is <span class="RktVal">#f</span>, then the standard map
 (<span class="RktSym"><a href="Editor_Functions.html#%28def._%28%28lib._mred%2Fmain..rkt%29._the-editor-wordbreak-map%29%29" class="RktValLink" data-pltdoc="x">the-editor-wordbreak-map</a></span>) is used.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._split-snip))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._split-snip%29%29" class="RktValDef RktValLink" data-pltdoc="x">split-snip</a></span><span class="hspace">&nbsp;</span><span class="RktVar">pos</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=void.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._void%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">void?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">pos</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Given a <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a>, splits the snip that includes the
 <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> (if any) so that the <a href="editor-overview.html#%28tech._position%29" data-pltdoc="x">position</a> is
 between two snips. The snip may refuse to split, although none of the
 built-in snip classes will ever refuse.</div></p><p>Splitting a snip is disallowed when the editor is internally locked
 for reflowing (see also <a href="editor-overview.html#%28part._lockinfo%29" data-pltdoc="x">Internal Editor Locks</a>).</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>method</p></div></div><p class="RForeground"><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=ivaraccess.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fclass-internal..rkt%2529._send%2529%2529&amp;version=7.7" class="RktStxLink Sq" data-pltdoc="x">send</a></span><span class="hspace">&nbsp;</span><span class="RktVar">a-text</span><span class="hspace">&nbsp;</span><a name="(meth._(((lib._mred/main..rkt)._text~25)._write-to-file))"></a><span class="RktSym"><a href="#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._text~25%29._write-to-file%29%29" class="RktValDef RktValLink" data-pltdoc="x">write-to-file</a></span><span class="hspace">&nbsp;</span><span class="RktVar">stream</span><span class="hspace">&nbsp;</span>[<span class="RktVar">start</span><span class="hspace">&nbsp;</span><span class="RktVar">end</span>]<span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">stream</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=Object_and_Class_Contracts.html%23%2528def._%2528%2528lib._racket%252Fclass..rkt%2529._is-a%7E3f%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">is-a?/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="editor-stream-out_.html" class="RktValLink" data-pltdoc="x">editor-stream-out%</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">start</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">end</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/releases/7.7/doc/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=7.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">eof</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>=<span class="hspace">&nbsp;</span><span class="RktVal">'</span><span class="RktVal">eof</span></td></tr></table></blockquote></div><div class="SIntrapara">Extends <span class="RktSym"><a href="editor___.html#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._editor~3c~25~3e%29._write-to-file%29%29" class="RktValLink" data-pltdoc="x">write-to-file</a></span> in <span class="RktSym"><a href="editor___.html" class="RktValLink" data-pltdoc="x">editor&lt;%&gt;</a></span>.</div><div class="SIntrapara">If <span class="RktVar">start</span> is 0 and <span class="RktVar">end</span> is <span class="RktVal">'</span><span class="RktVal">eof</span> negative,
 then the entire contents are written to the stream. If <span class="RktVar">end</span>
 is <span class="RktVal">'</span><span class="RktVal">eof</span>, then the contents are written from <span class="RktVar">start</span>
 until the end of the editor. Otherwise, the contents of the given
 range are written.
</div><div class="SIntrapara"></div></p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" tabindex="1" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, &quot;7.7&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;7.7&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="pasteboard_.html" title="backward to &quot;7.17 pasteboard%&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="Editor_Classes.html" title="up to &quot;7 Editor Classes&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="Editor_Functions.html" title="forward to &quot;8 Editor Functions&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div></div></div><div id="contextindicator">&nbsp;</div></body></html>